Make Apache to show different index.html also in browser's address bar
- by Marco Demaio
I have the following foloder tree on my shared hosting server:
www.somesite.com
|
|_ public_html (document folder)
|_ .htaccess (Apache file)
|_ inde.html (page shown by server now when someone looks for www.somesite.com)
|
|_ site_editor (folder)
| |_login.html (site editor control panel)
| |_file1.php
| |_file2.php
| |_ ...
|
|_ website (folder)
|_ index.html (website HOME PAGE)
|_ page1.html
|_ page2.html
|_ etc.
Now when someone looks for www.somesite.com the webserver look for index.html in public_html folder.
I would like the web server to show website/index.html when someone looks for www.somesite.com and I would like his browser bar to show only www.somesite.com/index.html and not www.somesite.com/website/index.html
I would also like the web server to show site_editor/login.html when someone looks for www.somesite.com/site_editor/
Is it possible to accomplish both task by setting .htaccess files in some ways???
Thanks!