加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > CMS系统 > Discuz > 正文

Discuz! X1简单SEO

发布时间:2020-12-14 01:45:27 所属栏目:Discuz 来源:网络整理
导读:span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium 'Times New Roman'; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0); word-spacing: 0px; -webkit-border-horizonta

<span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium 'Times New Roman'; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0); word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="line-height: 16px; font-family: 'Trebuchet MS',Arial,sans-serif; color: rgb(64,64,64); font-size: 13px" class="Apple-style-span">
<p style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 16px">Discuz! X1针对以往版本最大的区别就是增加了门户,发现了门户与论坛的标题都是相同的,并且index.php和portal.php都指向根目录,这样就造成了三个地址的页面内容重复,而导致搜索引擎降权,这样不利于SEO。提出以下修改方案。首先,把index.php统一指向到根目录,就是要把index.php都改成”/”1、页面顶部LOGO的,templatedefaultcommonheader.html2、导航条的,templatedefault下所有文件批量更换”index.php”为”/”其次,Discuz! X1顶部导航两个页面为portal.php和forum.php,比如我要把forum.php设定为首页1、在数据库common_nav表里更改forum.php为”/”,这个对应后台:界面 – 导航栏再次,Discuz! X1导航条里论坛页面还会显示forum.php,也要把这个改掉,尽一切可能消除被搜索引擎收录重复页的可能1、在sourcemoduleforum下所有文件批量更换”forum.php”为”/”


<p style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 16px">这样改后,index.php,forum.php全部都改成了根目录”/”,现在修改Discuz! X1门户标题和论坛标题重复


<p style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 16px">修改templatedefaultcommonheader.htm的TITLE区$_G['setting']['bbname']为


<div style="overflow-x: auto; overflow-y: auto; background-color: rgb(231,229,220); margin: 18px 0px; width: 594px; font-family: Consolas,'Courier New',Courier,mono; font-size: 12px; padding-top: 1px" class="dp-highlighter">
<div style="padding-left: 45px" class="bar">
<div style="border-left: rgb(108,226,108) 3px solid; padding-bottom: 10px; background-color: rgb(248,248,248); padding-left: 10px; padding-right: 8px; font: 9px Verdana,Geneva,Helvetica,sans-serif; color: silver; padding-top: 3px" class="tools">
<a style="outline-style: none; color: rgb(160,160,160); font-size: 9px; margin-right: 10px; text-decoration: none" onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;" href="#">view plain<a style="outline-style: none; color: rgb(160,160); font-size: 9px; margin-right: 10px; text-decoration: none" onclick="dp.sh.Toolbar.Command('CopyToClipboard',this);return false;" href="#">copy to clipboard<a style="outline-style: none; color: rgb(160,160); font-size: 9px; margin-right: 10px; text-decoration: none" onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;" href="#">print<a style="outline-style: none; color: rgb(160,160); font-size: 9px; margin-right: 10px; text-decoration: none" onclick="dp.sh.Toolbar.Command('About',this);return false;" href="#">?

    ??

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读