Fork me on GitHub

Tag: mod_rewrite

Tag Archives: mod_rewrite

A simple way to limit file downloads to only logged in users in WordPress

So, you’ve used WordPress to build your client’s site and to provide downloads for the site’s users. You’re hiding the links to download content based on the user’s logged in status. Great. But what happens when the logged in user copies the download URL and sends it to his friend? Well, unless you’re filtering the […]

July 1, 2010 | Web Design & Development, WordPress | 40 comments

Everything I know about optimizing a WordPress install

I don’t mean to badmouth WordPress when I say this, but if you deploy a WordPress based site without optimizing your install you’re just asking for a slow site. Below is everything I know about optimizing a WordPress installation. It is by no means a list of everything you can do to optimize a server […]

March 31, 2010 | Web Design & Development | 7 comments

Show PHP source without duplicating files

Every once in a while I want to show a php script’s source code. I would always have a .php file to show an active file in use and a companion .phps file (php-source) to show the source. With a little mod_rewrite and php this can be done with just the one active file, and […]

November 22, 2006 | PHP Scripting | Comments Off on Show PHP source without duplicating files