mod_rewrite Reference

Having a reference for basic mod_rewrite examples on hand is always a good idea.  About once every two weeks, I have to set up a server's URL rewrites, and because I don't use it that often, I'm susceptible to forgetting its exact syntax.

The article outlines:

  • The basic mod_rewrite layout
  • Basic redirects
  • Handling no 'www'
  • Blocking specific IP addresses
  • Stripping query strings
  • Hotlinking prevention
  • ... and more

Thanks to Cameron Chapman writing for Noupe, and to @RedstageMagento for spreading this through Twitter.

Leave a Reply

About NVNCBL

Quick Support