5ucms万网空间伪静态代码

作者 席鑫淼 来源 ligangxi.com 浏览 发布时间 16/05/31
<xml version="1.0" encoding="UTF-8">
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
	             <rule name="rule1" stopProcessing="true">
                     <match url="^channel-([0-9]+)-([_0-9a-z-]+).html" />
                     <action type="Rewrite" url="channel.asp?id={R:1}&amp;page={R:2}" />
                </rule>
                <rule name="rule2" stopProcessing="true">
                    <match url="^([0-9]+).html" />
                    <action type="Rewrite" url="content.asp?id={R:1}"  />
                </rule>
                <rule name="rule3" stopProcessing="true">
                    <match url="^tag-(.+)-([0-9]+).html" />
                    <action type="Rewrite" url="plus/search/index.asp?keyword={R:1}"  />
                </rule>
	             <rule name="rule4" stopProcessing="true">
                     <match url="^channel-([0-9]+).html" />
                     <action type="Rewrite" url="channel.asp?id={R:1}" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer> 	
</configuration>
Copyright hd30.cn . Some Rights Reserved 冀ICP备19002383号-1 在线投稿