Loading
0

DiscuzX3论坛IIS7/IIS8/IIS10web.config伪静态规则
被墙跳转TG:@qianhenetwork QQ 851617266

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

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="portal_topic">
                    <match url="^(.*/)*topic-(.+).html\?*(.*)$" />
                    <action type="Rewrite" url="{R:1}/portal.php\?mod=topic&amp;topic={R:2}&amp;{R:3}" />
                </rule>
                <rule name="portal_article">
                    <match url="^(.*/)*article-([0-9]+)-([0-9]+).html\?*(.*)$" />
                    <action type="Rewrite" url="{R:1}/portal.php\?mod=view&amp;aid={R:2}&amp;page={R:3}&amp;{R:4}" />
                </rule>
                <rule name="forum_forumdisplay">
                    <match url="^(.*/)*forum-(\w+)-([0-9]+).html\?*(.*)$" />
                    <action type="Rewrite"
                        url="{R:1}/forum.php\?mod=forumdisplay&amp;fid={R:2}&amp;page={R:3}&amp;{R:4}" />
                </rule>
                <rule name="forum_viewthread">
                    <match url="^(.*/)*thread-([0-9]+)-([0-9]+)-([0-9]+).html\?*(.*)$" />
                    <action type="Rewrite"
                        url="{R:1}/forum.php\?mod=viewthread&amp;tid={R:2}&amp;extra=page%3D{R:4}&amp;page={R:3}&amp;{R:5}" />
                </rule>
                <rule name="group_group">
                    <match url="^(.*/)*group-([0-9]+)-([0-9]+).html\?*(.*)$" />
                    <action type="Rewrite" url="{R:1}/forum.php\?mod=group&amp;fid={R:2}&amp;page={R:3}&amp;{R:4}" />
                </rule>
                <rule name="home_space">
                    <match url="^(.*/)*space-(username[-]uid)-(.+).html\?*(.*)$" />
                    <action type="Rewrite" url="{R:1}/home.php\?mod=space&amp;{R:2}={R:3}&amp;{R:4}" />
                </rule>
                <rule name="home_blog">
                    <match url="^(.*/)*blog-([0-9]+)-([0-9]+).html\?*(.*)$" />
                    <action type="Rewrite"
                        url="{R:1}/home.php\?mod=space&amp;uid={R:2}&amp;do=blog&amp;id={R:3}&amp;{R:4}" />
                </rule>
                <rule name="forum_archiver">
                    <match url="^(.*/)*(fid[-]tid)-([0-9]+).html\?*(.*)$" />
                    <action type="Rewrite" url="{R:1}/index.php\?action={R:2}&amp;value={R:3}&amp;{R:4}" />
                </rule>
                <rule name="plugin">
                    <match url="^(.*/)*([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+).html\?*(.*)$" />
                    <action type="Rewrite" url="{R:1}/plugin.php\?id={R:2}:{R:3}&amp;{R:4}" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

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

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