Serving index.html from a subdirectory

xbonez asked:

In my document root, I have to directories: home and foobar, both with their own index.html files.

How can I set it up so that when someone visits my site at, they see the contents on home/index.html?

I tried using an index.php with a redirect in document root, as well as a .htaccess redirect, but both of them change the URL in the browser to, which I would like to ideally avoid.

My answer:

Why don’t you just move the contents of home up one directory?

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.