我試圖創建.htaccess文件我的.htaccess得到內部服務器錯誤
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$index.php?url=$1 [QSA,L]
,當我嘗試在Web瀏覽器本地主機/ MVC(MVC是我的web目錄) 我收到提示
Internal Server Error:
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache/2.4.6 (Ubuntu) Server at local host Port 80
是'啓用rewrite'模塊? –
是的,重寫模塊已啓用 –
檢查您的Apache錯誤日誌。我的猜測是你錯過了['FileInfo'覆蓋](http://httpd.apache.org/docs/current/mod/core.html#allowoverride) – Phil