web@9416.cn
asp伪静态 web.config规则

25

0

<?xml version="1.0" encoding="UTF-8"?>
 
<configuration> 
<system.webServer> 
        <rewrite> 
            <rules> 
                <!--首页--> 
                <rule name="home"> 
                    <match url="^$" /> 
                    <action type="Rewrite" url="Index.asp" /> 
                </rule> 
 
                <!--重写内容--> 
                <rule name="content"> 
                    <match url="^([\w\d\/-]*)/([\w\d-]*)_(\d+)\.html" ignoreCase="false"/> 
                    <action type="Rewrite" url="show.asp?root={R:2}&amp;page={R:3}" /> 
                </rule> 
				<rule name="content_list"> 
                    <match url="^(?!lib)([\w\d\/-]*)/([\w\d-]*).html" ignoreCase="false"/> 
                    <action type="Rewrite" url="show.asp?root={R:2}" /> 
                </rule>
				<rule name="content_demo"> 
                    <match url="^(?!lib)([\w\d\/-]*)/([\w\d-]*).html" ignoreCase="false"/> 
                    <action type="Rewrite" url="demo.asp?root={R:2}" /> 
                </rule>
				<!--重写列表--> 
				<rule name="list_list"> 
                    <match url="^([\w\d\/-]*)/(\d+)/$" ignoreCase="false"/> 
                    <action type="Rewrite" url="list.asp?root={R:1}&amp;page={R:2}" /> 
                </rule>
                <rule name="list"> 
                    <match url="^(?!admin|plug|theme|lib|upfile)([\w\d\/-]*)/$" ignoreCase="false"/> 
                    <action type="Rewrite" url="list.asp?root={R:1}" /> 
                </rule> 
				
                
				        
            </rules> 
        </rewrite> 
    </system.webServer> 
</configuration>


网友评论
© 2013一流科技 All Right Reserved.  沪ICP备1304233