欢迎光临 - 我的站长站,本站所有资源仅供学习与参考,禁止用于商业用途或从事违法行为!

帝国cms插件

帝国CMS7.5默认伪静态规则大全
2019-08-23 我的站长站

帝国CMS7.5默认伪静态规则大全

  • 插件编号:212
  • 插件分类:帝国cms插件
  • 点击次数:1393
  • 插件编码:GBK/UTF
  • 插件版本:ecms7.5
  • 插件大小:14 KB
  • 下载权限:普通 / VIP
  • 插件售价:免费下载
  • 下载次数:48
立即下载

帝国CMS伪静态方法

帝国CMS7.5默认动态页面伪静态设置,请到后台‘系统’-“系统设置”-“伪静态参数设置”里面,填写默认伪静态规则即可。设置如下图:

帝国CMS7.5默认伪静态规则大全
帝国CMS伪静态截图

帝国CMS伪静态规则说明

附件包含结合项、.htaccess、Nginx.conf、web.config伪静态规则。

.htaccess伪静态规则

RewriteEngine On
ErrorDocument 404 /404.php
Rewritebase /
#信息内容页
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^showinfo-([0-9]+)-([0-9]+)-([0-9]+).html$ /e/action/ShowInfo.php?classid=$1&id=$2&page=$3 [NC,L]
#信息列表
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^listinfo-([0-9]+)-([0-9]+).html$ /e/action/ListInfo/index.php?classid=$1&page=$2 [NC,L]
#标题分类列表页
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^infotype-([0-9]+)-([0-9]+).html$ /e/action/InfoType/index.php?ttid=$1&page=$2 [NC,L]
#TAGS信息列表页
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tags-(etagid[0-9]+)-([0-9]+).html$ /e/tags/index.php?tagname=$1&page=$2 [NC,L]
#评论列表页
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^comment-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).html$  /e/pl/index.php?doaction=$1&classid=$2&id=$3&page=$4&myorder=$5&tempid=$6 [NC,L]
#栏目自定义伪静态 默认添加.html 后缀更多的后缀自行添加
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !^(d/|e/|html/|images/|s/|search/|skin/|t/|ad/|ebak/|web/|m2/|api)
RewriteRule ^([0-9a-zA-Z-/]+)/(|index.html|index_[0-9]+.html)$ /e/action/list.php?classid=$1&page=$2 [NC,L]
#内容自定义伪静态 默认添加.html 后缀更多的后缀自行添加
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !^(d/|e/|html/|images/|s/|search/|skin/|t/|ad|ebak/|web/|m2/|api)
RewriteRule ^([0-9a-zA-Z-/]+)/([0-9a-zA-Z]+)([_0-9]*).html$ /e/action/show.php?classid=$1&id=$2&page=$3 [NC,L]

Nginx.conf伪静态规则

rewrite ^/showinfo-([0-9]+)-([0-9]+)-([0-9]+).html$ /e/action/ShowInfo.php?classid=$1&id=$2&page=$3 last;
rewrite ^/listinfo-([0-9]+)-([0-9]+).html$ /e/action/ListInfo/index.php?classid=$1&page=$2 last;
rewrite ^/infotype-([0-9]+)-([0-9]+).html$ /e/action/InfoType/index.php?ttid=$1&page=$2 last;
rewrite ^/tags-(etagid[0-9]+)-([0-9]+).html$ /e/tags/index.php?tagname=$1&page=$2 last;
rewrite ^/comment-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-(.+?).html$  /e/pl/index.php?doaction=$1&classid=$2&id=$3&page=$4&myorder=$5&tempid=$6 last;
if (!-f $request_filename){
    set $rule_0 1$rule_0;
}
if ($request_uri !~ "^(/d/|/e/|/html/|/images/|/s/|/search/|/skin/|/t/|/ad/)"){
    set $rule_0 2$rule_0;
}
if ($rule_0 = "21"){
    rewrite ^/([0-9a-zA-Z-/]+)/(|index.html|index_[0-9]+.html)$ /e/action/list.php?classid=$1&page=$2 last;
    rewrite ^/([0-9a-zA-Z-/]+)/([0-9a-zA-Z]+)([_0-9]*).html$ /e/action/show.php?classid=$1&id=$2&page=$3 last;
}
if (!-e $request_filename) {
    return 404;
}

web.config伪静态规则

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <httpErrors errorMode="DetailedLocalOnly">
            <remove statusCode="404" />
            <error statusCode="404" path="/404.php" responseMode="ExecuteURL" />
        </httpErrors>
        <rewrite>
            <rules>
                <rule name="规则 1" stopProcessing="true">
                    <match url="^showinfo-([0-9]+)-([0-9]+)-([0-9]+).html$" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{QUERY_STRING}" pattern="^(.*)$" ignoreCase="false" />
                    </conditions>
                    <action type="Rewrite" url="/e/action/ShowInfo.php?classid={R:1}&amp;id={R:2}&amp;page={R:3}" appendQueryString="false" />
                </rule>
                <rule name="规则 2" stopProcessing="true">
                    <match url="^listinfo-([0-9]+)-([0-9]+).html$" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{QUERY_STRING}" pattern="^(.*)$" ignoreCase="false" />
                    </conditions>
                    <action type="Rewrite" url="/e/action/ListInfo/index.php?classid={R:1}&amp;page={R:2}" appendQueryString="false" />
                </rule>
                <rule name="规则 3" stopProcessing="true">
                    <match url="^infotype-([0-9]+)-([0-9]+).html$" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{QUERY_STRING}" pattern="^(.*)$" ignoreCase="false" />
                    </conditions>
                    <action type="Rewrite" url="/e/action/InfoType/index.php?ttid={R:1}&amp;page={R:2}" appendQueryString="false" />
                </rule>
                <rule name="规则 4" stopProcessing="true">
                    <match url="^tags-(etagid[0-9]+)-([0-9]+).html$" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{QUERY_STRING}" pattern="^(.*)$" ignoreCase="false" />
                    </conditions>
                    <action type="Rewrite" url="/e/tags/index.php?tagname={R:1}&amp;page={R:2}" appendQueryString="false" />
                </rule>
                <rule name="规则 5" stopProcessing="true">
                    <match url="^comment-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).html$" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{QUERY_STRING}" pattern="^(.*)$" ignoreCase="false" />
                    </conditions>
                    <action type="Rewrite" url="/e/pl/index.php?doaction={R:1}&amp;classid={R:2}&amp;id={R:3}&amp;page={R:4}&amp;myorder={R:5}&amp;tempid={R:6}" appendQueryString="false" />
                </rule>
                <rule name="规则 6" stopProcessing="true">
                    <match url="^([0-9a-zA-Z-/]+)/(|index.html|index_[0-9]+.html)$" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{QUERY_STRING}" pattern="^(.*)$" ignoreCase="false" />
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
                        <add input="{R:1}" pattern="^(d/|e/|html/|images/|s/|search/|skin/|t/|ad/|ebak/|web/|m2/|api)" ignoreCase="false" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="/e/action/list.php?classid={R:1}&amp;page={R:2}" appendQueryString="false" />
                </rule>
                <rule name="规则 7" stopProcessing="true">
                    <match url="^([0-9a-zA-Z-/]+)/([0-9a-zA-Z]+)([_0-9]*).html$" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{QUERY_STRING}" pattern="^(.*)$" ignoreCase="false" />
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
                        <add input="{R:1}" pattern="^(d/|e/|html/|images/|s/|search/|skin/|t/|ad|ebak/|web/|m2/|api)" ignoreCase="false" negate="true" />
                    </conditions>
                    <action type="Rewrite" url="/e/action/show.php?classid={R:1}&amp;id={R:2}&amp;page={R:3}" appendQueryString="false" />
                </rule>
            </rules>
        </rewrite>
        <httpRedirect enabled="false" />
    </system.webServer>
</configuration>
下载地址

· 积分下载:下载扣除对应积分,不扣除下载次数
· VIP免费:VIP会员免费下载,扣除下载次数
· 下载即代表您已阅读并同意 [服务条款]

相关推荐
  • 伪静态
  • 帝国CMS7.5插件
  • dedecms伪静态生成插件
    dedecms伪静态生成插件

    织梦后台系统参数有个伪静态设置,相信大家都没弄过,今天就搞一个dedecms伪静态插件,供大家研究学习交流。dedecmss伪静态插件使用方法一、首先就是需要开启伪静态。.后台系统→系统基本参数→核心设...

    织梦cms插件 1512 4年前
  • 帝国CMS二次开发搜索伪静态教程

    帝国CMS搜索伪静态教程步骤:1、打开\e\search\index.php 411行左右,找到:Header("Location:result/?searchid=$searchid".$dogetvar);修改为:Header("Location:$public_r[newsurl]search-0-$searchid.html".$dogetvar);二、打开\e\search\result...

    帝国cms教程 328 9年前
  • 帝国CMS7.0IIS伪静态教程

    帝国CMS7.0IIS伪静态教程步骤:1、进后后台 - 系统 - 系统设置 - 伪静态参数设置 - 都点击默认2、在网站根目录(web文件夹)下建一个文件,文件名及后缀格式为:httpd.ini3、用txt/记事本模式打开httpd.ini文件,将下面的内容复制到该文件内:[ISAPI_Rewrite]# ...

    帝国cms教程 318 9年前
  • 帝国cms7.2默认伪静态规则

    暂时只有APACHE IIS6 IIS7的规则,其他规则自行对照修改即可。不是很严谨,自己可以往严谨中修改:仅供参考!apache下的.htaccess:RewriteEngine OnErrorDocument 404 /404.htmlRewritebase /#信息列表RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^l...

    帝国cms教程 686 8年前
  • 帝国TAGS标签伪静态调用+伪静态规则教程

    帝国CMS灵动标签SQL调用TAGS标签代码<?php$tsql=$empire->query("select * from {$dbtbpre}enewstags order by num desc");while($tr=$empire->fetch($tsql)){?><a href="/tag/<?=$tr[&#39;path&#39;]?>.html" target="_blank&qu...

    帝国cms教程 339 6年前
  • 批量检测网盘分享地址是否失效插件帝国CMS版
    批量检测网盘分享地址是否失效插件帝国CMS版

    插件说明因为我的站长站资源大部分都是传网盘的,网盘分享链接时不时失效非常影响用户体验,所以下载网盘地址需要经常维护补链。网上有一些批量查询网盘分享链接失效的工具,但是基本都收费,而且有的检...

    帝国cms插件 251 2年前
  • 帝国CMS7.5微信扫码登录插件
    帝国CMS7.5微信扫码登录插件

    帝国CMS7.5微信扫码登录插件,7.5版本测试可以用,附件只有UTF版,其他编码自行转码。为了避免我们新手第一次做微信扫码登录没有头绪,我们从头说起。步骤一、申请微信登录接口1,获取:AppID,AppSecret 。记...

    帝国cms插件 726 3年前
  • 帝国ECMS7.5身份证实名认证插件
    帝国ECMS7.5身份证实名认证插件

    帝国CMS实名认证插件使用教程一、将插件上传到extend/shiming二、登录后台三、访问/e/extend/shiming/install.php如空白删除install.off四、安装成功五、如要卸载,访问/e/extend/shiming/install...

    帝国cms插件 1153 4年前
  • 帝国CMS7.5点击加载更多插件
    帝国CMS7.5点击加载更多插件

    帝国CMS7.5点击加载更多插件,按步骤操作即可实现点击加载更多。1、将以下代码上传至服务器(e/action/)下,命名为getmore.php2、在帝国CMS模板后台,在对应的列表页面添加以下代码页面模板内容(*)列表内...

    帝国cms插件 1266 4年前
  • 帝国cms7.5运算式验证码插件
    帝国cms7.5运算式验证码插件

    用腻了原版的字母+数字组合的验证码,那就试试帝国cms加减法运算验证码,支持所有页面的验证,至少支持7.0以上帝国cms utf8版本(6.6没安装所以就没试过),GBk版请自行转编码即可。安装方法方法一:(不修改...

    帝国cms插件 535 4年前