如何去掉栏目导航URL中的index.html
使用DEDECMS建站时,栏目导航的URL中总是显示index.html,这样看起来既不美观,又不利于SEO,今天就讲解下通过以下方法把它去掉。
打开include/channelunit.func.php
找到$sitepath = MfTypedir($sitepath);
在if($isdefault==-1)前面加入
if($ispart>2){
return $typedir;
}
if($defaultname == 'index.html'){
$defaultname = '';
}
Tag:dedecms栏目导航织梦dede
标签解析:{category module=share pid=0}
当前路由:article/show/index
动态地址:index.php?s=article&c=html&m=show&catids=&ids=&is_mobile=&iframe=1&pp=4
变量前缀:t
总记录数:11
分页功能:未开启
可用字段:id、tid、pid、mid、pids、name、dirname、pdirname、child、childids、domain、mobile_domain、thumb、show、content、displayorder、disabled、ismain、pcatpost、topid、catids、is_post、url、total
-
用微信 “扫一扫”
将文章分享到朋友圈。
关注公众号:xue-jiqiao
本文版权归原作者所有,转载请注明原文来源出处,学技巧网站制作感谢您的支持!
发表评论:
最新建站教程
猜你也喜欢看这些



