簡體   English   中英

使用.htaccess獲取500內部服務器錯誤

[英]using .htaccess getting 500 internal server error

我是.htaccess新手,我已經編寫了一個.htaccess文件,例如

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule ^(.+) index.php?url=$1 [QSA, L]

現在我在瀏覽器中運行我的網址,例如localhost/my_project/

它給我以下錯誤

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost 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.

我已經開始在我的WAMP服務器中rewrite module 還檢查錯誤日志有最后一行是

HTTP/1.1" 500 535

空間太多了!

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l

#Remove that space between QSA, and L
RewriteRule ^(.+) index.php?url=$1 [QSA,L]

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM