Hello, I want to rewrite (NOT redirect) just the index.html file in my main root to another file. Basically, when visitors come to http://www.glowingfaceman.com (or http://glowingfaceman.com) I want them to see the contents of http://www.glowingfaceman.com/blog/welcome/ but I want the address bar to read like they're viewing the root. This should be easy but it seems like RewriteRule goes way overboard with regexp's and stuff... All I want is to simply rewrite the index.html... Nothing more... I tried this: RewriteEngine on RewriteRule /index.html /blog/welcome/ Code (markup): But that did not work. I know this should be really simple... I wish they had made RewriteRule as easy as Redirect...
P.S. As a temporary fix, I copied the raw html sourcecode of /blog/welcome/ into the root index.html, but obviously that's not a good long-term solution! =P
This worked for me (but you might need to tinker with it): RewriteEngine on RewriteRule index.html blog/welcome.html
Couldn't you enclose it into a <Location /> ? or is it just for the folders.. try using regular expressions like ^/index.html$ mod_rewrite includes the beginning / , or any folders that your index.html might be into...so be carefull.. ^(.*)index.html$ might do the trick