Loading
0

phpcms程序IIS7/IIS8/IIS10web.config伪静态规则
被墙跳转TG:@qianhenetwork QQ 851617266

301免备案跳转微信公众号
腾讯云服务器大促销。
华为服务器
phpcms程序IIS7/IIS8/IIS10web.config伪静态规则 将如下规则保存到web.config文件中,并放到网站根目录下,如已经存在有web.config文件,则只需要把<rewrite></rewrite>及中间内容复制放到<system.webServer>下面

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="phpcmsRule 1">
                    <match url="^(.*)content-([0-9]+)-([0-9]+)-([0-9]+)\.html$" ignoreCase="false" />
                    <action type="Rewrite"
                        url="{R:1}/index\.php\?m=content&amp;c=index&amp;a=show&amp;catid={R:2}&amp;id={R:3}&amp;page={R:4}"
                        appendQueryString="false" />
                </rule>
                <rule name="phpcmsRule 2">
                    <match url="^(.*)show-([0-9]+)-([0-9]+)-([0-9]+).html$" ignoreCase="false" />
                    <action type="Rewrite"
                        url="{R:1}/index\.php\?m=content&amp;c=index&amp;a=show&amp;catid={R:2}&amp;id={R:3}&amp;page={R:4}"
                        appendQueryString="false" />
                </rule>
                <rule name="phpcmsRule 3">
                    <match url="^(.*)list-([0-9]+)-([0-9]+).html$" ignoreCase="false" />
                    <action type="Rewrite"
                        url="{R:1}/index\.php\?m=content&amp;c=index&amp;a=lists&amp;catid={R:2}&amp;page={R:3}"
                        appendQueryString="false" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

301免备案跳转微信公众号
华为服务器
腾讯云服务器大促销。

声明:站长码字很辛苦啊,转载时请保留本声明及附带文章链接:https://www.zfcdn.xyz/showinfo-8-35977-0.html
亲爱的:被墙域名跳转TG:@qianhenetwork QQ:851617266,可否收藏+评论+分享呢?
上一篇:emlog程序IIS7/IIS8/IIS10下web.config伪静态规则
下一篇:IIS7/IIS8/IIS10下常见程序的web.config伪静态规则大全