redirect mod

Redirection with mod_rewrite

Understanding Redirection with mod_rewrite. The Apache module, mod_rewrite, is typically used to transform URLs from one form to another. It can also be used for permanent redirection. The rewriting rules can be placed in httpd.conf (for server-wide rules), or in .htaccess files (for directory-specific rules). Consider the following example that is in the .htaccess file of this website: rewriteEngine on Read more