【问题标题】:Web.Config causes 500 internal server errorWeb.Config 导致 500 内部服务器错误
【发布时间】:2012-03-29 21:26:38
【问题描述】:

这是我的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 Internal Server Error

有什么问题?

【问题讨论】:

    标签: iis-7 web-config


    【解决方案1】:

    马赫迪提供的答案是正确的。但是,如果您无法安装 URL Rewrite 模块(这是我遇到的一些签名验证问题),您可以从下面提供的链接下载该模块的旧版本。这最终为我工作。 希望这会有所帮助。

    https://forums.iis.net/t/1239468.aspx?URL+rewrite+installation+failing+due+to+signature+verification+failure

    【讨论】:

      【解决方案2】:

      问题出在服务器上,他们没有正确安装Microsoft URL Rewriting Module...

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

      【讨论】:

      猜你喜欢
      • 2015-11-25
      • 2023-03-15
      • 2018-06-06
      • 2013-08-11
      • 2014-04-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-23
      相关资源
      最近更新 更多