The requested URL / was not found on this server

The requested URL / was not found on this server.
原因:未打开Apache的重写功能
#LoadModule rewrite_module modules/mod_rewrite.so
<Directory "E:/online/webs/Apache24/htdocs">
Options Indexes FollowSymLinks
AllowOverride None =>改为 AllowOverride All
Order allow,deny
Allow from all
</Directory>

 

 

RewriteCond %{HTTP_HOST} ^store.otbhome.com [NC]
RewriteRule ^(.*)$ http://www.otbhome.com/$1 [R=301,L]

 

posted @ 2019-04-07 19:58  皎然CEO  阅读(3721)  评论(0编辑  收藏  举报