2014-12-07 57 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