Mod rewrite rule

My files are in …


on the server.

But I want people to access the index.html file by …

What is the correct ReWriteRule in .htaccess that will do that?

Not just for index.html, but for all files within that directory.

is there a reason you can’t just rename the “blog-subsite” directory to “blog” ?
That would be a lot more efficient.

If you only change the name, you can loose any backlinks you might have to your blog, because they will not find you anymore. So you can rename your blog and besides configure a permanent redirection to your blog from your old url, something like this:

RewriteCond %{HTTP_HOST} ^example\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.com$
RewriteRule ^blog\-subsite\/?(.*)$ “http\:\/\/www\.example\.com\/blog$1” [R=301,L]


Rémon is correct about moving the blog’s directory after which you can use .htaccess to redirect from the old link to the new link with a R=301 for the SEs.