.htaccess: An Abbreviated Guide to Managing Your LAMP Hosted Website and Server

Some of the clients I've worked with migrate from an ASP.net environment on IIS to LAMP stack environments, and often want the ability to manage their own rules for redirects and user agent server detection.  As a result, I've compiled this abbreviated guide to creating such rules in the .htaccess file.

Mod_Rewrite Cheat Sheet

.htaccess rewrite rules can get confusing, especially if you don't write them on a regular basis.  Keeping the order prioritized and syntax right is key.  This Mod_Rewrite cheat sheet not only has all the parameters to use, but examples as well!

Regular Expressions Cheat Sheet

If there's one area I have trouble remembering, it's definitely regular expressions.  Whether matching strings in javascript, C#, PHP or writing redirect conditions and rules in an .htaccess file, this is the cheat sheet to have handy!  Compliments to AddedBytes.com for making it available.

Subscribe to RSS - XAMPP Stack