网页知识大全网站改版中:主站将改版成软件下载,PPT,个人简历等等内容,现有内容保留到旧版中去。
您所在的位置:首页 > 实例 > 正文

SDCMS企业版伪静态代码

作者:伪静态代码 来源:原创 日期:2018/10/22 10:35:38 人气:281 加入收藏 标签:伪静态代码

SDCMS企业版伪静态代码如下

<?xml version="1.0" encoding="UTF-8"?>

<configuration> 

<system.webServer> 

        <rewrite> 

            <rules>

                <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\/-]*)/(?!sd_)([\w\d-]*).html" ignoreCase="false"/> 

                    <action type="Rewrite" url="show.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|user|html|plug|theme|lib|upfile)([\w\d\/-]*)/$" ignoreCase="false"/> 

                    <action type="Rewrite" url="list.asp?root={R:1}" /> 

                </rule> 


                <rule name="home">

                    <match url="^index\.html(.*)" />

                    <action type="Rewrite" url="/index.asp" />

                </rule>

                

       

            </rules> 

        </rewrite> 

    </system.webServer> 

</configuration> 

只需要将上面的代码存成web.config上传到网站根目录下面就可以了。

本文网址:http://clewo.net/shili/67.html
读完这篇文章后,您心情如何?
  • 0
  • 0
  • 0
  • 0
  • 0
  • 0
  • 0
  • 0
上一篇: img标签实例