1. 程式人生 > >Apache重寫未開啟,導致The requested URL /xxxx.html was not found on this server

Apache重寫未開啟,導致The requested URL /xxxx.html was not found on this server

當你訪問專案域名下某個地址時出現以下錯誤

The requested URL /xxxx.html was not found on this server

因為是新搭建的環境,apache的重寫未開啟,開啟重寫後,問題解決,方法如下:

apache 開啟 httpd.conf 檔案 找到

#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>

然後完美解決!