我已尝试通过遵循web.config中的规则将pdf重定向到pdf
<rule name="r_1" stopProcessing="true">
<match url="^/media/peedin5t/xxx.pdf$" ignoreCase="false" />
<action type="Redirect" url="/media/beebz4yx/xxx1.pdf" redirectType="Permanent" />
</rule>
即使我已经清除了缓存,仍然无法正常工作
此规则对我来说很好用,请将^ / media / peedin5t / xxx.pdf $修改为^ media / peedin5t / xxx.pdf $。
<rule name="r_1" stopProcessing="true">
<match url="^media/peedin5t/xxx.pdf$" ignoreCase="false" />
<action type="Redirect" url="/media/beebz4yx/xxx1.pdf" redirectType="Permanent" />
</rule>