The .htaccess file and Apache’s mod_rewrite module may be some of the most under-utilized web server utilities.
Millions of websites suffer the ignominy and shame of having hardcoded filenames
on their websites such as:
or unsightly url’s for their (sometimes dynamic) subpages, for example:
.htaccess and mod_rewrite can dramatically change these unfortunate websites for the better. They may become
Not only will the new names be easier to read and more intuitive, they will also be search-engine friendly and one step closer to a proper RESTful methodology.
For a good introduction to .htaccess, see:
There is a good mod_rewrite “cheatsheet” here:
For more reading on RESTful principles, see: