Redirecting you from index.html to index.htm ****************************************************************************** URL Masking http://www.ontwerps.nl/domain-redirect-keeping-url-path-url-masking ****************************************************************************** URL Masking http://stackoverflow.com/questions/10589757/redirect-url-to-new-address-but-keep-the-original Make sure mod_rewrite is installed and loaded, make sure AllowOverride All is set in the VirtualHost section of your conf file, and put these lines in your .htaccess file in the document root of the web server. RewriteEngine on RewriteRule ^$ main.php?page=home [L] RewriteRule ^login uam.php?action=login [L, QSA, NC] RewriteRule ^(.*)$ main.php?page=$1 [L, QSA, NC] ******************************************************************************