【发布时间】:2016-04-13 21:46:14
【问题描述】:
我已将我的 WordPress 网站移至窗口服务器,但我遇到了问题。如果我将此代码的代码放在 web.config 中
<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>
然后网站给出错误 500.19 HTTP 500.19 内部服务器错误配置无效 如果我从 web.config 中删除此代码,则网站仅适用于以 index.php 开头的永久链接,例如 index.php/opening-时间/
我已经搜索过这个问题,但无法解决
【问题讨论】:
-
除非你需要 COM,否则永远不要在 windows 上托管
-
请检查IIS服务器重写模块默认是禁用的,所以如果它被禁用就启用它
标签: php wordpress configuration web-config window-server