destoon修改公司模块url路径com

Posted hepeacer

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了destoon修改公司模块url路径com相关的知识,希望对你有一定的参考价值。

destoon修改公司模块url路径com,只需要修改两处即可。

1、打开文件include/global.func.php,修改:

$URL = DT_PATH.\'com/\'.$username.\'/\';

将com改成你希望的公司模块地址即可,例如:b2b、gongsi、changjia等。

2、修改网站的伪静态,将com相关的伪静态改成对应的路径即可。

rewrite ^/(b2b)/([a-z0-9_\\-]+)/([a-z]+)/(.*)\\.html$ /index.php?homepage=$2&file=$3&rewrite=$4 last;
rewrite ^/(b2b)/([a-z0-9_\\-]+)/([a-z]+)([/])?$ /index.php?homepage=$2&file=$3 last;
rewrite ^/(b2b)/([a-z0-9_\\-]+)([/])?$ /index.php?homepage=$2 last;

然后后台更新缓存即可,例如:板材厂家https://www.360muye.cn/company/。转载请注明:鹏程木业网

以上是关于destoon修改公司模块url路径com的主要内容,如果未能解决你的问题,请参考以下文章