我已将我的 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-timings/
我已经搜索过这个问题,但无法解决