Apache Mod重新写入-重新写入导致500错误

Apache Mod重新写入-重新写入导致500错误,apache,mod-rewrite,Apache,Mod Rewrite,我正在使用go daddy虚拟服务器,并已上载以下htaccess: RewriteEngine on RewriteCond $1 !^(index\.php?|images|styles|scripts|favicon\.ico|favicon\.png|robots\.txt) RewriteRule ^(.*)$ index.php?/$1 [L] 我正在尝试删除index.php?从URL,但失败导致500个错误 有人能提出为什么这会导致500错误吗? 提前感谢您无法从Rewrite

我正在使用go daddy虚拟服务器,并已上载以下htaccess:

RewriteEngine on
RewriteCond $1 !^(index\.php?|images|styles|scripts|favicon\.ico|favicon\.png|robots\.txt)
RewriteRule ^(.*)$ index.php?/$1 [L]
我正在尝试删除index.php?从URL,但失败导致500个错误

有人能提出为什么这会导致500错误吗?
提前感谢

您无法从
RewriteCond
访问
$1
,因为
RewriteCond
是在
RewriteRule
之前计算的。也许就是这样,你应该写:

RewriteEngine On
RewriteCond %{REQUEST_URI} !^(index\.php|...)
RewriteRule ...

webmasters.stackexchange.com?