1
我有這個.htaccess文件和正常工作:創建多個重寫規則,不接受一個參數
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)$ /index.php?
locale=$1§ion=$2&action=$3&id=$4 [L]
RewriteRule ^([^/]*)/([^/]*)/([^/]*)$ /index.php?locale=$1§ion=$2&action=$3 [L]
RewriteRule ^([^/]*)/([^/]*)$ /index.php?locale=$1§ion=$2 [L]
但是,當我再添加一個線,一個單一的參數它爆炸。這是最後的文件:
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)$ /index.php?
locale=$1§ion=$2&action=$3&id=$4 [L]
RewriteRule ^([^/]*)/([^/]*)/([^/]*)$ /index.php?locale=$1§ion=$2&action=$3 [L]
RewriteRule ^([^/]*)/([^/]*)$ /index.php?locale=$1§ion=$2 [L]
RewriteRule ^([^/]*)$ /index.php?locale=$1 [L]
這是錯誤消息:
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.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.