Make Apache to show different index.html also in browser's address bar
Posted
by Marco Demaio
on Stack Overflow
See other posts from Stack Overflow
or by Marco Demaio
Published on 2010-06-16T14:25:42Z
Indexed on
2010/06/16
15:12 UTC
Read the original article
Hit count: 436
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 onlywww.somesite.com/index.html
and notwww.somesite.com/website/index.html
I would also like the web server to show
site_editor/login.html
when someone looks forwww.somesite.com/site_editor/
Is it possible to accomplish both task by setting .htaccess files in some ways???
Thanks!
© Stack Overflow or respective owner