Web.Config导致500内部服务器错误

Mah*_*asi 4 iis-7 web-config

这是我的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>
Run Code Online (Sandbox Code Playgroud)

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

但是这个web.config文件会导致500 Internal Server Error.

问题是什么?

Mah*_*asi 8

问题来自服务器,他们没有Microsoft URL Rewriting Module正确安装...

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