当然了,我可以为你提供网站优化培训,记事本建立,重命名为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://qfdx.com/zong/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://qfdx.com/zong/{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://qfdx.com/zong/{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://qfdx.com/zong/{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://qfdx.com/zong/{R:0}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
<httpRedirect enabled="false" destination="http://www.9fo.com" exactDestination="true" httpResponseStatus="Permanent" />
</system.webServer>
</configuration>
2005/2/25 | Tags: | 大鹤随笔 | 美签大鹤:微信号:usadahe