我的htaccess文件有什么错误?

时间:2016-08-13 16:55:11

标签: .htaccess

请帮我修复我的.htaccess错误,返回错误500

Options -MultiViews
RewriteEngine On

RewriteBase /mvc/public

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

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

1 个答案:

答案 0 :(得分:1)

问题在于RewriteRule中的标志。 SQA不是有效的标志,但我假设您的意思是QSA,所以将SQA,L更改为QSA,L:

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