1
我有我的共享主機服務器上的以下foloder樹:讓Apache以顯示不同的index.html也是在瀏覽器的地址欄中
www.somesite.com
|
|_ public_html (document folder)
|_ .htaccess (Apache file)
|_ index.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.
現在,當有人查找www.somesite.com Web服務器查找指數.html在public_html文件夾中。
我想網絡服務器顯示
website/index.html
當有人查找www.somesite.com,我想他的瀏覽器欄只顯示www.somesite.com/index.html
,而不是www.somesite.com/website/index.html
我會也就像web服務器到顯示
site_editor/login.html
當有人找www.somesite.com/site_editor/
是否有可能通過以某種方式設置.htaccess文件來完成這兩項任務?
謝謝!