IIS上的Wordpress

时间:2011-10-04 17:52:33

标签: php wordpress iis

尝试在我的IIS php服务器上安装wordpress网站。

问题是,如果我写www.blog.mydomain.com它没有给我任何东西(找不到),没有“www”它给我“500内部服务器错误”错误。

我在安装了IIS重写器的服务器上使用plesk面板。 我已将所有内容上传到httpdocs / blog文件夹,并创建了一个转到该确切文件夹的子域。我编辑了wp-config工作,并在blog文件夹中添加了web.config规则。

我做错了什么?

web的配置:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
 <system.webServer>
  <rewrite>
   <rules>
    <rule name="Imported Rule 1" stopProcessing="true">
     <match url="^.*$" />
     <conditions logicalGrouping="MatchAny">
      <add input="{REQUEST_FILENAME}"
                  matchType="IsFile" pattern=""
                  ignoreCase="false" />
      <add input="{REQUEST_FILENAME}"
                  matchType="IsDirectory"
                  pattern="" ignoreCase="false" />
     </conditions>

     <action type="None" />
    </rule>
    <rule name="Imported Rule 2" stopProcessing="true">
     <match url="^.*$" />
     <action type="Rewrite" url="index.php" />
    </rule>
   </rules>
  </rewrite>
 </system.webServer>
</configuration>

0 个答案:

没有答案