Fork me on GitHub

Tag: htaccess

Tag Archives: htaccess

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

WordPress users: USE A FAVICON!

If you’re using a favicon on your site, then you’re fine. If you’re not: Just recently I noticed that WordPress will do something evil: if you don’t have a favicon.ico on your server WordPress will do a 404 return on the favicon.ico request that’s made by pretty much every modern browser. To say it again, […]

September 18, 2009 | Web Design & Development | 3 comments

Simple, but handy .htaccess tricks

These two have always been questions in my mind but until recently I’ve never had the need to actually put time in to satisfying my curiosity and as I look around I haven’t (easily) found any real world examples of these out there. So, we all know how to set up basic HTTP authentication, right? […]

July 10, 2009 | Code, Computers | 8 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