Wordpress 500(URL重写模块错误.)

Don*_*sen 4 php iis url-rewriting

我正在托管一个Wordpress网站,IIS 8 我收到以下错误:

无法加载资源:服务器响应状态为500(URL重写模块错误.)

当我上传新图像并显示时.如果我去wp-content,给IIS_USRS访问然后将图像的作品,当我添加一个新的形象我不得不删除IIS_USRS,然后重新添加了图像工作

如果我使用以下Web配置,网站永远不会加载

<?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>
Run Code Online (Sandbox Code Playgroud)

Vis*_*Sen 10

在你的web.config文件中使用下面提到的RULEs ..

<rules>

    <rule name="Imported Rule 1" stopProcessing="true">
        <match url="^index\.php$" ignoreCase="false"/>
        <action type="None"/>
    </rule>

    <rule name="Redirect Image to HTTP" stopProcessing="true">
        <match url=".*\.(gif|jpg|jpeg|png|css|js)$" ignoreCase="true"/>
        <action type="Rewrite" url="{R:0}"/>
    </rule>

    <rule name="Imported Rule 2" stopProcessing="true">
        <match url="." ignoreCase="false"/>
        <conditions>
            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true"/>
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true"/>
        </conditions>
        <action type="Rewrite" url="/index.php"/>
    </rule>

</rules>
Run Code Online (Sandbox Code Playgroud)


小智 6

我将安全选项卡中的权限更改为iis管理器中wordpress的wp-content文件夹,需要进行编辑,然后我将完全控制权授予IIS_USRS,错误得到解决