Category Archive: .htaccess
Posts about Apache and .htaccess
In addition to www canonicalization, you can also canonicalize the HTTP protocol, redirecting HTTP to HTTPS (or vice versa) with .htaccess.
Devices and bots are often searching for different versions of the Apple Touch Icon. Here is a quick slice of .htaccess to redirect all apple-icon requests to apple.png.
When developing sites, an easy way to keep things private is to use .htaccess to restrict access based on IP address.
Need to redirect your feeds to FeedBurner? Here’s how to do it with a thin slice of .htaccess.
Here’s a handy .htaccess snippet for canonicalizing URLs by removing the “www”, “index.php”, and “index.html” from all requests.
Another effective trap for bad bots and spammers, built with PHP and a slice of .htaccess.
Quick snippet today that you can add to your .htaccess file to block some common XSS (cross-site scripting) attacks.