web.config:dedecms首頁index.html和index.php設置301方法

web.config設置301的方法,這裏寫的是內頁跳轉方法,還有dedecms首頁帶有index.php和index.html跳轉到根域名!

<?xml version=”1.0″ encoding=”UTF-8″?>
<configuration>
<system.webServer>
<rewrite>
<rules>

<rule name=”Redirect” stopProcessing=”true”>
<match url=”^a.html” />
<conditions logicalGrouping=”MatchAll” trackAllCaptures=”false” />
<action type=”Redirect” url=”http://www.域名.com/zhuanti/a.html” />
</rule>

<rule name=”Redirect2″ stopProcessing=”true”>
<match url=”^b.html” />
<conditions logicalGrouping=”MatchAll” trackAllCaptures=”false” />
<action type=”Redirect” url=”http://www.域名.com/zhuanti/b.html” />
</rule>

<rule name=”Redirect3″ stopProcessing=”true”>
<match url=”^index.php” />
<conditions logicalGrouping=”MatchAll” trackAllCaptures=”false” />
<action type=”Redirect” url=”http://www.域名.com/” />
</rule>

<rule name=”Redirect4″ stopProcessing=”true”>
<match url=”^index.html” />
<conditions logicalGrouping=”MatchAll” trackAllCaptures=”false” />
<action type=”Redirect” url=”http://www.域名.com/” />
</rule>

</rules>
</rewrite>
</system.webServer>
</configuration>

未經允許不得轉載:鄭州seo|不知則問,不能則學!-鄭州金尊国际 » web.config:dedecms首頁index.html和index.php設置301方法

'); })();