JTBC(CMS)内容管理系统PHP版本的伪静态(开源与免费的网站内容管理系统)

最近哥们要做一个帮助系统,看上了JTBC(CMS)内容管理系统,奈何不想用生成,对SEO或者美观度,还是显示为静态比较好,

那就是伪静态,他们家的东西也是真全乎,啥版本的都有  PHP  NET  JSP ASP 不得了,高端大气上档次;官方下载地址https://www.jtbc.cn/download/

3.0.1.6版本设置伪静态及htaccess代码

/common/incfiles/lib/jtbc/route.inc.php
查找$urltype = base::getNum(tpl::take('global.' . $genre . ':config.urltype', 'cfg'), 0);
替换成$urltype = base::getNum(tpl::take('global.' . $genre . ':config.urltype', 'cfg'), 1);

Apache Rewrite:
新建个记事本,内容如下,重命名为 .htaccess ,放到网站根目录下

RewriteRule ^aboutus/detail-(.[0-9]*).html$ aboutus/index.php?type=detail&id=$1
RewriteRule ^aboutus/detail-(.[0-9]*)-(.[0-9]*).html$ aboutus/index.php?type=detail&id=$1&page=$2

RewriteRule ^news/detail-(.[0-9]*).html$ news/index.php?type=detail&id=$1
RewriteRule ^news/detail-(.[0-9]*)-(.[0-9]*).html$ news/index.php?type=detail&id=$1&page=$2
RewriteRule ^news/list-(.[0-9]*).html$ news/index.php?type=list&category=$1
RewriteRule ^news/list-(.[0-9]*)-(.[0-9]*).html$ news/index.php?type=list&category=$1&page=$2

RewriteRule ^case/detail-(.[0-9]*).html$ case/index.php?type=detail&id=$1
RewriteRule ^case/detail-(.[0-9]*)-(.[0-9]*).html$ case/index.php?type=detail&id=$1&page=$2
RewriteRule ^case/list-(.[0-9]*).html$ case/index.php?type=list&category=$1
RewriteRule ^case/list-(.[0-9]*)-(.[0-9]*).html$ case/index.php?type=list&category=$1&page=$2

Nginx Rewrite:代码如下

rewrite ^/aboutus/detail-(.[0-9]*).html$ /aboutus/index.php?type=detail&id=$1;
    rewrite ^/aboutus/detail-(.[0-9]*)-(.[0-9]*).html$ /aboutus/index.php?type=detail&id=$1&page=$2;

    rewrite ^/news/detail-(.[0-9]*).html$ /news/index.php?type=detail&id=$1;
    rewrite ^/news/detail-(.[0-9]*)-(.[0-9]*).html$ /news/index.php?type=detail&id=$1&page=$2;
    rewrite ^/news/list-(.[0-9]*).html$ /news/index.php?type=list&category=$1;
    rewrite ^/news/list-(.[0-9]*)-(.[0-9]*).html$ /news/index.php?type=list&category=$1&page=$2;

    rewrite ^/case/detail-(.[0-9]*).html$ /case/index.php?type=detail&id=$1;
    rewrite ^/case/detail-(.[0-9]*)-(.[0-9]*).html$ /case/index.php?type=detail&id=$1&page=$2;
    rewrite ^/case/list-(.[0-9]*).html$ /case/index.php?type=list&category=$1;
    rewrite ^/case/list-(.[0-9]*)-(.[0-9]*).html$ /case/index.php?type=list&category=$1&page=$2;

==============================================================================

以下是一个比较完整的的伪静态,也仅供参考

RewriteEngine on
RewriteRule ^news/index.html$ news/index.php
RewriteRule ^news/detail-(.[0-9]*).html$ news/index.php?type=detail&id=$1
RewriteRule ^news/list-(.[0-9]*)-(.[0-9]*).html$ news/index.php?type=list&classid=$1&offset=$2
RewriteRule ^case/index.html$ case/index.php
RewriteRule ^case/detail-(.[0-9]*).html$ case/index.php?type=detail&id=$1
RewriteRule ^case/list-(.[0-9]*)-(.[0-9]*).html$ case/index.php?type=list&classid=$1&offset=$2
RewriteRule ^index.html$ index.php
RewriteRule ^aboutus.html$ aboutus.php
RewriteRule ^web.html$ web.php
RewriteRule ^contact.html$ contact.php
RewriteRule ^net/detail-(.[0-9]*).html$ net/index.php?type=detail&id=$1
RewriteRule ^net/detail-(.[0-9]*)-(.[0-9]*).html$ net/index.php?type=list&classid=$1&offset=$2

ErrorDocument 404 /404.html

RewriteEngine on
RewriteCond %{http_host} ^yihunweb.com [NC]
RewriteRule ^(.*)$ http://www.yihunweb.com/$1 [R=301,L]

news是文章模块,case产品模块,net是aboutus模块,下面4句是404和301重定向。
然后记得修改配置管理模块的链接模式然后删除缓存,基本上是没有问题的

===================================================================

还搜索到一名网友给出的伪静态方式,仅供参考

1.把ISAPI_Rewrite.dll和httpd.ini 传到空间根目录任意文件夹
2.在空间控制面板里面设置ISAPI筛选器.把ISAPI_Rewrite.dll添加进去(基本空间都有这功能吧)
3.到jtbc 要伪静态模块目录下config.jtbc里面.
    <item>
      <name><![CDATA[nurltype]]></name>
      <chinese><![CDATA[0]]></chinese>
    </item>
改成
    <item>
      <name><![CDATA[nurltype]]></name>
      <chinese><![CDATA[3]]></chinese>
    </item>
4.完成
下面是ISAPI_Rewrite伪静态规格 :
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
#表示将目录下Default.aspx映射为Default.htm
RewriteRule /articles/Default.htm /articles/Default\.aspx [N,I]
#文章内容连接
RewriteRule /articles/detail-(\d+)\.htm /articles/default\.aspx\?type=detail&id=$1 [N,I]
#文章内容翻页翻页连接
RewriteRule /articles/detail-(\d+)-(\d+)\.htm /articles/default\.aspx\?type=detail&id=$1&ctpage=$2 [N,I]
#二级菜单连接
RewriteRule /articles/list-(\d+)-(\d+)\.htm /articles/default\.aspx\?type=list&class=$1&page=$2 [N,I]
#数字翻页连接
RewriteRule /articles/list--(\d+)-(\d+)\.htm /articles/default\.aspx\?type=list&class=$1&page=$2 [N,I]

上面是把articles伪静态 其他要伪静态照葫芦画瓢
其他版本 方法一样 (asp.php.net.jsp)

===================================================================

 

所写所说,是心之所感,思之所悟,行之所得;文当无敷衍,落笔求简洁。 以所舍,求所获;有所依,方所成!(有事儿请详询博主:博主电话以及微信18810292089)

更多请关注:老梁`s Blog

免责声明,若由于商用引起版权纠纷,一切责任均由使用者承担。 您必须遵守我们的协议,如果您下载了该资源行为将被视为对《免责声明》全部内容的认可->联系老梁投诉资源
Laoliang.Net资源全部来自互联网收集,仅供用于学习和交流,请勿用于商业用途。如有侵权、不妥之处,请联系站长并出示版权证明以便删除。 敬请谅解! 侵权删帖/违法举报/投稿等事物联系邮箱:service@laoliang.net
老梁`s Blog(老梁博客) » JTBC(CMS)内容管理系统PHP版本的伪静态(开源与免费的网站内容管理系统)

发表评论

本站承接,网站推广(SEM,SEO),软件的安装的安装与调试,服务器的推荐以及配置,APP的开发与维护,网络或者web维护;财务软件,客户管理系统,人力资源,超市POS,医药管理,服务器安全,ecshop,金蝶,用友,管家婆;

立即查看 了解详情