小编Jef*_*rty的帖子

IIS上的Wordpress永久链接?

我在Windows 7 IIS上使用WordPress进行开发.我正在WordPress中上传图片以获取博文.图像在网站上显示正常,但是一旦启用固定链接,图像就不再有效,并且未来的任何图像上传我都会收到错误:

HTTP Error 500.50 - URL Rewrite Module Error.
The page cannot be displayed because an internal server error has occurred.
Run Code Online (Sandbox Code Playgroud)

我不知道为什么会发生这种情况,这是我的web.config:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <rewrite>
      <rules>
        <rule name="wordpress" patternSyntax="Wildcard">
          <match url="*" />
            <conditions>
              <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>
</configuration>
Run Code Online (Sandbox Code Playgroud)

一旦我关闭我的永久链接并使用默认它有效,有谁知道为什么这可能?

wordpress iis-7

10
推荐指数
2
解决办法
1万
查看次数

标签 统计

iis-7 ×1

wordpress ×1