Iis 7 Config导致500个内部服务器错误

Iis 7 Config导致500个内部服务器错误,iis-7,web-config,Iis 7,Web Config,这是我的web.config文件内容: <?xml version="1.0"?> <configuration> <system.webServer> <httpErrors errorMode="Detailed" /> <asp scriptErrorSentToBrowser="true"/> <rewrite> <rules>

这是我的
web.config
文件内容:

<?xml version="1.0"?> 

<configuration> 

    <system.webServer>
    <httpErrors errorMode="Detailed" />
        <asp scriptErrorSentToBrowser="true"/>
        <rewrite>
            <rules>
                <rule name="Main Rule" stopProcessing="true">
                    <match url=".*" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="index.php" />
                </rule>
            </rules>
        </rewrite>

     </system.webServer>

    <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true"/>
    </system.web>
</configuration>

我正在尝试使用wordpress的永久链接

但是此
web.config
文件会导致
500内部服务器错误


问题出在哪里?

问题出在服务器上,他们没有正确安装
Microsoft URL重写模块


模块已正确安装,然后问题已解决。

Mahdi提供的答案是正确的。但是,如果您无法安装URL重写模块(这是由于签名验证问题导致的问题),您可以从下面提供的链接下载该模块的旧版本。这最终对我有用。 希望这有帮助


谢谢@Mahdi。在使用ASP.NET MVC的Win2k12上存在相同问题,请安装此