帝国cms伪静态开启 帝国CMS中网站URL路径栏目目录的灵活更改实现方式

帝国CMS教程

最近在使用帝国cms的时候碰到个问题,帝国CMS在添加分类的时候感觉没有dedecms的那样灵活设置。在帝国下面添加分类的时候往往会把目录路径做的很长,怎么样才能优化分类的路径呢。

在网上找了很久才找到怎么样更改帝国CMS 中URL 路径,今天碰到个解决了我心中的疑惑。

这个功能对网站优化有很大中用哦,现分享下

其实就一段代码

解决办法(建议一条条执行):

update 表名 set filename=CONCAT(id,’/index’) where id>0;

update 表名 set newspath=”;

实例使用(新闻、文章):

update phome_ecms_news set filename=CONCAT(id,’/index’) where id>0;

update phome_ecms_news set newspath=”;

update phome_ecms_article set filename=CONCAT(id,’/index’) where id>0;

update phome_ecms_article set newspath=”;

直接删除路径就可以了

然后在添加栏目的时候更改一下栏目的URL地址。设定为不限制就可以了。