标签:pattern 环境 cond 改版 NPU fail news mat host
由于傻傻的没有看说明,改版必须先301重定向 ,然后在后台添加可以审核过! 如果不做301 是不会通过效验!!
百度网站改版301重定向记录
由于不太会写复杂的规则 我只能用简单的 规则来解决! 环境是宝塔
<rewrite>
<rules>
<rule name="Fail bad requests">
<match url=".*"/>
<conditions>
<add input="{HTTP_HOST}" pattern="www.xx.com" negate="true" />
</conditions>
<action type="AbortRequest" />
</rule>
<rule name="Redirect from blog">
<match url="^a/IQOSnews/([0-9]+)/([0-9]+)/([0-9]+).html" />
<action type="Redirect" url="IQOSnews/{R:1}{R:2}{R:3}.html" redirectType="Found" />
</rule>
</rules>
</rewrite>
<rewrite>
<rules>
<rule name="Fail bad iqoswenti">
<match url=".*"/>
<conditions>
<add input="{HTTP_HOST}" pattern="www.xx.com" negate="true" />
</conditions>
<action type="AbortRequest" />
</rule>
<rule name="Redirect from blog">
<match url="^a/iqoswenti/([0-9]+)/([0-9]+)/([0-9]+).html" />
<action type="Redirect" url="iqoswenti/{R:1}{R:2}{R:3}.html" redirectType="Found" />
</rule>
</rules>
</rewrite>
标签:pattern 环境 cond 改版 NPU fail news mat host
原文地址:https://www.cnblogs.com/cink/p/12515119.html