2014-12-07 56 views
0

我的apache 2配置有問題。如果我跑防止Apache 2搜索/索引

http://myhost.com/user/search 

一切工作正常。我的網站加載完美。但如果我運行

http://myhost.com/index 

我得到一個404錯誤。是否有可能防止這種情況發生?

我感謝你的幫助!

+0

http://stackoverflow.com/questions/5190206/apache-htaccess-how-do-i-redirect -for-files-that-arent-found-without-sending – henPHP 2014-12-07 23:12:33

回答

1

包括以下內容,你想要的位訪問者降落在任何頁面替換index.htmlErrorDocument 404 /index.html

+0

謝謝。這解決了我的問題。 :d – anisie 2014-12-08 06:17:31