destoon7 iisweb环境下伪静态的写法

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
	<rewrite>
            <rules>
               <rule name="destoon_rewrite_0">
                     <match url="^(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$" />
                     <action type="Rewrite" url="/404.php" />
                </rule>
               <rule name="destoon_rewrite_1">
                     <match url="^(.*)/(admin|cache|editor|file|include|lang|module|skin|template)/(.*)\.php(.*)$" />
                     <action type="Rewrite" url="/404.php"  />
                </rule>
               <rule name="destoon_rewrite_2">
                     <match url="^(.*)-htm-(.*)$" />
                     <action type="Rewrite" url="{R:1}.php?{R:2}" />
                </rule>
                 <rule name="destoon_rewrite_3">
                    <match url="^(.*)/show-([0-9]+)([\-])?([0-9]+)?\.html\?*(.*)$" />
                    <action type="Rewrite" url="{R:1}/show.php?itemid={R:2}&amp;page={R:4}"  />
                </rule>
                <rule name="destoon_rewrite_4">
                    <match url="^(.*)/list-([0-9]+)([\-])?([0-9]+)?\.html\?*(.*)$" />
                    <action type="Rewrite" url="{R:1}/list.php?catid={R:2}&amp;page={R:4}"  />
                </rule>
                <rule name="destoon_rewrite_5">
                    <match url="^(.*)/show/([0-9]+)/([0-9]+)?([/])?$" />
                    <action type="Rewrite" url="{R:1}/show.php?itemid={R:2}&amp;page={R:3}"  />
                </rule>
                <rule name="destoon_rewrite_6">
                    <match url="^(.*)/list/([0-9]+)/([0-9]+)?([/])?$" />
                    <action type="Rewrite" url="{R:1}/list.php?catid={R:2}&amp;page={R:3}"  />
                </rule>
                <rule name="destoon_rewrite_7">
                    <match url="^(.*)/([A-za-z0-9_\-]+)-c([0-9]+)-([0-9]+)\.html\?*(.*)$" />
                    <action type="Rewrite" url="{R:1}/list.php?catid={R:3}&amp;page={R:4}"  />
                </rule>
                <rule name="destoon_rewrite_8">
                    <match url="^(.*)/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$" />
                    <action type="Rewrite" url="{R:1}/index.php?moduleid={R:2}&amp;catid={R:3}&amp;itemid={R:4}&amp;page={R:5}"  />
                </rule>
               <rule name="destoon_rewrite_9">
                     <match url="^([a-z]+)/(.*)\.shtml\?*(.*)$" />
                     <action type="Rewrite" url="{R:1}/index.php?rewrite={R:2}" />
                </rule>
                <rule name="destoon_rewrite_10">
                    <match url="^(com)/([a-z0-9_\-]+)/([a-z]+)/(.*)\.html\?*(.*)$" />
                    <action type="Rewrite" url="index.php?homepage={R:2}&amp;file={R:3}&amp;rewrite={R:4}"  />
                </rule>
                <rule name="destoon_rewrite_11">
                    <match url="^(com)/([a-z0-9_\-]+)/([a-z]+)([/])?$" />
                    <action type="Rewrite" url="index.php?homepage={R:2}&amp;file={R:3}"  />
                </rule>
                <rule name="destoon_rewrite_12">
                    <match url="^(com)/([a-z0-9_\-]+)([/])?$" />
                    <action type="Rewrite" url="index.php?homepage={R:2}"  />
                </rule>
            </rules>
        </rewrite>		
    </system.webServer>
</configuration>
实用干货原创整理,转载请注明九九主题出处!本站所有资源均可以下载,qq一键登录购买SVIP更实惠,免注册扫码支付更方便。
九九主题 » destoon7 iisweb环境下伪静态的写法

发表评论