<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的,template\default\common\header.html2、导航条的,template\default\下所有文件批量更换”index.PHP”为”/”其次,Discuz! X1顶部导航两个页面为portal.PHP和forum.PHP,比如我要把forum.PHP设定为首页1、在数据库common_nav表里更改forum.PHP为”/”,这个对应后台:界面 – 导航栏再次,Discuz! X1导航条里论坛页面还会显示forum.PHP,也要把这个改掉,尽一切可能消除被搜索引擎收录重复页的可能1、在\source\module\forum\下所有文件批量更换”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">修改\template\default\common\header.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="#">?