0
將尾部反斜槓添加到URL末尾會導致錯誤500,即/ forum /。當輸入/論壇時,/forum.php按預期加載到瀏覽器中。在檢查錯誤日誌文件時,其狀態爲添加尾部反斜槓導致錯誤500
由於可能的 配置錯誤,請求超出了10個內部重定向的限制。如有必要,使用'LimitInternalRecursion'來增加 的限制。使用'LogLevel debug'來獲得回溯。
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(admin|user)($|/) - [L]
#RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php [L]
RewriteRule ^([A-Za-z0-9-_]+)$ /index.php?view=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)$ index.php?view=$1&page=$2 [L]
如果我添加一個反斜槓 '?/',/論壇將加載索引頁/論壇/將加載/forum.php
RewriteRule ^(.*)?/$ $1.php [L]
我有什麼錯?先謝謝你。