destoon修改公司模块url路径com

发布时间 2023-10-08 09:30:37作者: 麒麟速排

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.clw9335.com/gl/ 转载请注明:攻略-9335游戏网