0
我想創建一個MVC框架,因此我必須更改URL並執行此操作,我必須配置.htaccess文件。下面的命令寫在文件中:php:內部服務器錯誤
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA.L]
我使用WAMP服務器和rewrite_module在Apache模塊檢查,仍然得到內部服務器錯誤爲:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
有什麼解決問題?
第一步調試問題與阿帕奇重寫模塊始終檢查服務器錯誤日誌文件。下一步是打開模塊提供的附加重寫日誌。 – arkascha