Url rewriting 重复';php';使用ISAPI在IIS上重新写入URL

Url rewriting 重复';php';使用ISAPI在IIS上重新写入URL,url-rewriting,iis-6,isapi,isapi-rewrite,Url Rewriting,Iis 6,Isapi,Isapi Rewrite,我正在使用ISAPI_Rewrite v2删除IIS 6上的index.php。这就是重写的工作方式: http://dev.mysite.co.uk/mypage => http://dev.mysite.co.uk/index.php/mypage http://dev.mysite.co.uk/anotherpage => http://dev.mysite.co.uk/index.php/anotherpage 使用$\u SERVER['REQUEST\u UR

我正在使用ISAPI_Rewrite v2删除IIS 6上的index.php。这就是重写的工作方式:

http://dev.mysite.co.uk/mypage      => http://dev.mysite.co.uk/index.php/mypage
http://dev.mysite.co.uk/anotherpage => http://dev.mysite.co.uk/index.php/anotherpage
使用$\u SERVER['REQUEST\u URI']我可以看到实际发生的情况如下:

http://dev.mysite.co.uk/mypage      => http://dev.mysite.co.uk/index.php/index.php/mypage
http://dev.mysite.co.uk/anotherpage => http://dev.mysite.co.uk/index.php/index.php/anotherpage
这会导致404错误。重写规则包含在httpd.ini中,它位于我的子域的根文件夹中。以下是我使用的规则:

[ISAPI_Rewrite]
RewriteRule ^(.*)$ /index.php/$1 [L]
有人知道这可能是什么原因吗?我找到了描述同一问题的答案,但没有答案


谢谢

我想它只是循环,所以请尝试这样修复它:

[ISAPI_Rewrite]
RewriteRule /(?!index\.php/.*)(.*) /index.php/$1 [L]

我猜它只是循环,所以请尝试这样修复它:

[ISAPI_Rewrite]
RewriteRule /(?!index\.php/.*)(.*) /index.php/$1 [L]