【发布时间】:2018-12-06 00:57:06
【问题描述】:
我有这个以下 web.conf
<?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>
<defaultDocument>
<files>
<clear />
<add value="index.php" />
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="index.html" />
<add value="iisstart.htm" />
<add value="default.aspx" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
wordpress 网站可以工作,但是如果我查看图像示例http://domain/wp-content/uploads/2018/06/home-slide-5.jpg 时,某些图像会出现以下错误@
HTTP 错误 500.50 - URL 重写模块错误。 该页面无法显示,因为发生了内部服务器错误。
【问题讨论】: