.htaccess is a very ancient configuration file for web servers, and is one of the most powerful configuration files most webmasters will ever come across. This tutorial shows off the very best of the best htaccess tricks and code snippets.
You've come to the right place if you are looking to acquire mad skills for using .htaccess files!
Want to redirect all links with any uppercase characters to lowercase using pure mod_rewrite within an .htaccess file? Sure why not! OR how to use RewriteMap and mod_speling for those with access to
Web Developers sometimes use
file.ext?v=004 as a version control system to force visitors to use updated files. This is terrible. Instead link to
apache-003.css and set it to be cached forever. When you change the file you just change the links to
apache-004.css. That eliminates millions of bandwidth and resource robbing If-Modified-Since requests. You only need Apache with mod_rewrite, and 1-10 minutes!