我的DT网站,设置的企业域名是name.domain.com的格式。子栏目是name.domain.com/honor/ 内页是name.domain.com/honor/1.hmtl
其实如果你没有修改过源程序,直接在后台设置泛解析+绑定后,是不需要我这个规则的。
不过有些人会像我一样,把企业商铺的子栏目/子页面也设置了伪静态,这样的会就需要在company目录下写一个伪静态规则
# Destoon B2B Rewrite Rules
RewriteEngine On
RewriteBase /
RewriteCond Host: (\w+)\.域名\.com
RewriteRule ^(.*) $1
RewriteRule ^(.*)/([a-z]+)/(.*)\.html$ index.php?homepage=$1&file=$2&rewrite=$3
RewriteRule ^(.*)/([a-z]+)([/])?$ index.php?homepage=$1&file=$2
使用方法:保存成.htaccess文件,放到/company/目录下即可。
- 上一篇: 2019百度又更新了那些算法呢?
- 下一篇: mymps默认提取body第一张为标题图片
发表评论