最近在使用帝國(guó)CMS的時(shí)候碰到個(gè)問題,,帝國(guó)CMS在添加分類的時(shí)候感覺沒有dedecms的那樣靈活設(shè)置。在帝國(guó)下面添加分類的時(shí)候往往會(huì)把目錄路徑做的很長(zhǎng),,怎么樣才能優(yōu)化分類的路徑呢,。
在網(wǎng)上找了很久才找到怎么樣更改帝國(guó)CMS 中URL 路徑,,今天碰到個(gè)解決了我心中的疑惑,。
這個(gè)功能對(duì)網(wǎng)站優(yōu)化有很大中用哦,,現(xiàn)分享下
其實(shí)就一段代碼
解決辦法(建議一條條執(zhí)行):
update 表名 set filename=ConCAT(id,’/index’) where id>0;
update 表名 set newspath=”;
實(shí)例使用(新聞、文章):
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=”;
直接刪除路徑就可以了
然后在添加欄目的時(shí)候更改一下欄目的URL地址,。設(shè)定為不限制就可以了,。