Mod重写到IIS URL重写问题

时间:2017-04-22 20:32:03

标签: php .htaccess mod-rewrite url-rewriting iis-8

我需要在Windows Server 2012(IIS 8.0)上托管PHP脚本

的.htaccess

<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
        RewriteCond %{REQUEST_URI} !/system/.* [NC]
        RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ /index.php?/$1 [L]
</IfModule>

当我尝试在IIS中的URL_Rewrite中导入这些规则时,我收到以下错误

enter image description here

我需要帮助解决这个问题。谢谢

0 个答案:

没有答案