Test .htaccess rules

The online tool htaccess.mwl.be allows to easily debug HTACCESS redirects, and already saved me some headaches 🙂


.htaccess rewrite simple tutorial

Apache webserver interprets the requests it receive as URLs. The default behaviour is to translate /a/certain/path into as a UNIX path, looking for the oject “path” in the “a/certain” folder starting from the “document root” (the path in the server that Apache knows to be the root, such as /var/www/yourdomain.com/).

There is a complicated configuration file that can be modified to overcome this behaviour: .htaccess that has to be placed in the website root folder (or in the subfolder we want to affect the behaviour of). Continue reading