-
2月25日
网站优化培训,ASP程序301重定向,整站和内页重定向代码 备忘
作者:美签大鹤 | 专业对付美国签证拒签(214B拒签)
-
当然了,我可以为你提供网站优化培训,记事本建立,重命名为Web.config
一、内页重定向
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Redirect" stopProcessing="true">
<match url="^visa/9.html" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="https://www.9fo.com.cn/n/visa/9.html" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
————————————
多个域名301整站重定向
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="301-1 Redirect" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^lsj.la$" />
</conditions>
<action type="Redirect" url="https://www.9fo.com.cn/n/{R:0}" redirectType="Permanent" />
</rule>
<rule name="301-2 Redirect" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www.lsj.la$" />
</conditions>
<action type="Redirect" url="https://www.9fo.com.cn/n/{R:0}" redirectType="Permanent" />
</rule>
<rule name="301-3 Redirect" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^9fo.cn$" />
</conditions>
<action type="Redirect" url="https://www.9fo.com.cn/n/{R:0}" redirectType="Permanent" />
</rule>
<rule name="301-4 Redirect" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www.9fo.cn$" />
</conditions>
<action type="Redirect" url="https://www.9fo.com.cn/n/{R:0}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
<httpRedirect enabled="false" destination="http://www.9fo.com" exactDestination="true" httpResponseStatus="Permanent" />
</system.webServer>
</configuration>
从2005年开始专一对付美国签证拒签,美宝换护照,内地补SSN等