精品国产免费观看久久久_久久天天躁狠狠躁夜夜爽_无码人妻少妇久久中文字幕_狠狠做深爱婷婷久久综合一区

互聯網知識

精準傳達 ? 價值共享

洞悉互聯網前沿資訊,探尋網站營銷規律

查看其它板塊

織夢DEDECMS城市分站偽靜態規則

作者:狐靈科技 | 2020-03-22 22:29 |點擊:

上一篇文章寫了織夢多城市插件安裝圖文教程【偽靜態版】

這篇文章給大家分享一下分站的偽靜態規則其中包含 .htaccess,bcloud_nginx_user.conf,Nginx寶塔,以及web.config

.htaccess 是Apache的靜態文件

bcloud_nginx_user.conf是百度云主機的靜態文件


Nginx是linux寶塔的偽靜態文件,復制里面的內容到偽靜態設置即可。


web.config 是IIS的靜態文件

——————————————————————


.htaccess 偽靜態規則

  1. RewriteEngine On
    RewriteRule ^.*list-([0-9]+)-([0-9]+)-([0-9]+).html$ /plus/list.php?tid=$1&totalresult=$2&PageNo=$3 
     
    RewriteRule ^.*list-([0-9]+).html$ /plus/list.php?tid=$1
     
    RewriteRule ^.*view-([0-9]+).html$ /plus/view.php?arcID=$1
     
    RewriteRule ^.*/.*-([0-9]+)-([0-9]+).html$ /plus/view.php?aid=$1&pageno=$2
    RewriteRule ^.*-([0-9]+)-([0-9]+).html$ /plus/view.php?aid=$1&pageno=$2
     
    RewriteRule ^tags/([^-]+).html$ /tags.php?/$1/
    RewriteRule ^.*/tags/([^-]+).html$ /tags.php?/$1/
     
    RewriteRule ^tags/([^-]+)-([0-9]+).html$ /tags.php?/$1/$2
    RewriteRule ^.*/tags/([^-]+)-([0-9]+).html$ /tags.php?/$1/$2
     
    RewriteRule ^index.html$ index.php
    RewriteRule ^.*/index.html$ index.php


bcloud_nginx_user.conf 偽靜態規則


  1. rewrite ^/.*list-([0-9]+)-([0-9]+)-([0-9]+).html$ /plus/list.php?tid=$1&totalresult=$2&PageNo=$3;
    rewrite ^/.*list-([0-9]+).html$ /plus/list.php?tid=$1;
    rewrite ^/.*view-([0-9]+).html$ /plus/view.php?arcID=$1;
    rewrite ^/.*/.*-([0-9]+)-([0-9]+).html$ /plus/view.php?aid=$1&pageno=$2;
    rewrite ^/.*-([0-9]+)-([0-9]+).html$ /plus/view.php?aid=$1&pageno=$2;
    rewrite ^/tags/([^-]+).html$ /tags.php?/$1/;
    rewrite ^/.*/tags/([^-]+).html$ /tags.php?/$1/;
    rewrite ^/tags/([^-]+)-([0-9]+).html$ /tags.php?/$1/$2;
    rewrite ^/.*/tags/([^-]+)-([0-9]+).html$ /tags.php?/$1/$2;
    rewrite ^/index.html$ /index.php;
    rewrite ^/.*/index.html$ /index.php;

寶塔Nginx偽靜態規則


  1. rewrite ^/.*list-([0-9]+)-([0-9]+)-([0-9]+).html$ /plus/list.php?tid=$1&totalresult=$2&PageNo=$3;
    rewrite ^/.*list-([0-9]+).html$ /plus/list.php?tid=$1;
    rewrite ^/.*view-([0-9]+).html$ /plus/view.php?arcID=$1;
    rewrite ^/.*/.*-([0-9]+)-([0-9]+).html$ /plus/view.php?aid=$1&pageno=$2;
    rewrite ^/.*-([0-9]+)-([0-9]+).html$ /plus/view.php?aid=$1&pageno=$2;
    rewrite ^/tags/([^-]+).html$ /tags.php?/$1/;
    rewrite ^/.*/tags/([^-]+).html$ /tags.php?/$1/;
    rewrite ^/tags/([^-]+)-([0-9]+).html$ /tags.php?/$1/$2;
    rewrite ^/.*/tags/([^-]+)-([0-9]+).html$ /tags.php?/$1/$2;
    rewrite ^/index.html$ /index.php;
    rewrite ^/.*/index.html$ /index.php;
     


web.config 是IIS的偽靜態規則

  1. <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <rewrite>
                <rules>
                    <clear />
                    <rule name="tool.apizl.com rewriteTools1" patternSyntax="ECMAScript" stopProcessing="false">
                        <match url="^.*list-([0-9]+)-([0-9]+)-([0-9]+).html" ignoreCase="false" />
                        
                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                        <action type="Rewrite" url="/plus/list.php?tid={R:1}&amp;totalresult={R:2}&amp;PageNo={R:3}" appendQueryString="false" />
                    </rule><rule name="tool.apizl.com rewriteTools3" patternSyntax="ECMAScript" stopProcessing="false">
                        <match url="^.*list-([0-9]+).html" ignoreCase="false" />
                        
                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                        <action type="Rewrite" url="/plus/list.php?tid={R:1}" appendQueryString="false" />
                    </rule><rule name="tool.apizl.com rewriteTools5" patternSyntax="ECMAScript" stopProcessing="false">
                        <match url="^.*view-([0-9]+).html" ignoreCase="false" />
                        
                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                        <action type="Rewrite" url="/plus/view.php?arcID={R:1}" appendQueryString="false" />
                    </rule><rule name="tool.apizl.com rewriteTools7" patternSyntax="ECMAScript" stopProcessing="false">
                        <match url="^.*/.*-([0-9]+)-([0-9]+).html" ignoreCase="false" />
                        
                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                        <action type="Rewrite" url="/plus/view.php?aid={R:1}&amp;pageno={R:2}" appendQueryString="false" />
                    </rule><rule name="tool.apizl.com rewriteTools8" patternSyntax="ECMAScript" stopProcessing="false">
                        <match url="^.*-([0-9]+)-([0-9]+).html" ignoreCase="false" />
                        
                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                        <action type="Rewrite" url="/plus/view.php?aid={R:1}&amp;pageno={R:2}" appendQueryString="false" />
                    </rule><rule name="tool.apizl.com rewriteTools10" patternSyntax="ECMAScript" stopProcessing="false">
                        <match url="^tags/([^-]+).html" ignoreCase="false" />
                        
                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                        <action type="Rewrite" url="/tags.php?/{R:1}/" appendQueryString="false" />
                    </rule><rule name="tool.apizl.com rewriteTools11" patternSyntax="ECMAScript" stopProcessing="false">
                        <match url="^.*/tags/([^-]+).html" ignoreCase="false" />
                        
                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                        <action type="Rewrite" url="/tags.php?/{R:1}/" appendQueryString="false" />
                    </rule><rule name="tool.apizl.com rewriteTools13" patternSyntax="ECMAScript" stopProcessing="false">
                        <match url="^tags/([^-]+)-([0-9]+).html" ignoreCase="false" />
                        
                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                        <action type="Rewrite" url="/tags.php?/{R:1}/{R:2}" appendQueryString="false" />
                    </rule><rule name="tool.apizl.com rewriteTools14" patternSyntax="ECMAScript" stopProcessing="false">
                        <match url="^.*/tags/([^-]+)-([0-9]+).html" ignoreCase="false" />
                        
                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                        <action type="Rewrite" url="/tags.php?/{R:1}/{R:2}" appendQueryString="false" />
                    </rule><rule name="tool.apizl.com rewriteTools16" patternSyntax="ECMAScript" stopProcessing="false">
                        <match url="^index.html" ignoreCase="false" />
                        
                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                        <action type="Rewrite" url="index.php" appendQueryString="false" />
                    </rule><rule name="tool.apizl.com rewriteTools17" patternSyntax="ECMAScript" stopProcessing="false">
                        <match url="^.*/index.html" ignoreCase="false" />
                        
                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                        <action type="Rewrite" url="index.php" appendQueryString="false" />
                    </rule>
                </rules>
            </rewrite>
            <httpErrors>
     
    </httpErrors>
        </system.webServer>
    </configuration>

以上就是 織夢DEDECMS城市分站偽靜態規則
如沒特殊注明,文章均為狐靈科技原創,轉載請注明?? "織夢DEDECMS城市分站偽靜態規則
多一份免費策劃方案,總有益處。

請直接添加技術總監微信聯系咨詢

網站設計 品牌營銷

多一份參考,總有益處

聯系狐靈科技,免費獲得專屬《策劃方案》及報價

咨詢相關問題或預約面談,可以通過以下方式與我們聯系

業務熱線:15082661954 / 大客戶專線:15523356218