1
URL
我使用的ISAPI_Rewrite V2刪除我的IIS 6上的index.php這是改寫應如何工作:重複「的index.php」使用ISAPI重寫在IIS
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
使用$ _ SERVER [「REQUEST_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]
有沒有人知道可能是什麼原因造成的?我發現this post其中描述了相同的問題,但它沒有答案。
感謝