修改destoon会员公司的伪静态中的com目录的方法(附在几行)
destoon修改公司模块教程(公司域名url设置和伪静态)
destoon修改公司模块url路径com,如:www.blueboss.cn/com/gongsiming 只需要修改两处即可。
1、打开文件include/global.func.php,(大约在894行)修改:
$URL = DT_PATH.'com/'.$username.'/';
将com改成你希望的公司模块地址即可,例如:b2b、gongsi、changjia、gs、qiye等。
2、修改网站的伪静态,将com相关的伪静态改成对应的路径即可。
rewrite ^/(qiye)/([a-z0-9_\-]+)/([a-z]+)/(.*)\.html$ /index.php?homepage=$2&file=$3&rewrite=$4 last; rewrite ^/(qiye)/([a-z0-9_\-]+)/([a-z]+)([/])?$ /index.php?homepage=$2&file=$3 last; rewrite ^/(qiye)/([a-z0-9_\-]+)([/])?$ /index.php?homepage=$2 last;
然后后台更新缓存即可,例如: 蓝博 www.blueboss.cn/qiye/gongsiming 。转载请注明