Serving index.html from a subdirectory
Posted
by
xbonez
on Server Fault
See other posts from Server Fault
or by xbonez
Published on 2012-09-24T15:21:26Z
Indexed on
2012/09/24
15:39 UTC
Read the original article
Hit count: 290
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 example.com, 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 example.com/home/, which I would like to ideally avoid.
© Server Fault or respective owner