Emlog最实用的seo优化教程
<div style="color: black; text-align: left; margin-bottom: 10px;">
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">大众</span>都<span style="color: black;">晓得</span>emlog是一个国内知名的php个人博客建站程序,用过它的<span style="color: black;">伴侣</span>都<span style="color: black;">晓得</span>,这程序体积小,操作上手快,<span style="color: black;">况且</span>功能强大,非常适合新手建站<span style="color: black;">运用</span>。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">因为</span><span style="color: black;">重点</span>是面向个人博客建站用途的,emlog在<span style="color: black;">非常多</span>细节上并<span style="color: black;">无</span>针对seo优化来完善,例如网页标题重复,<span style="color: black;">做为</span>一个失败的SEOer,<span style="color: black;">然则</span>折腾emlog<span style="color: black;">亦</span>有不少时间了,今天在<span style="color: black;">这儿</span>就分享一下关于emlog的<span style="color: black;">有些</span>实用的seo优化<span style="color: black;">办法</span>,<span style="color: black;">期盼</span>对<span style="color: black;">大众</span>有<span style="color: black;">帮忙</span>,新手<span style="color: black;">倘若</span>想优化一下自己的网站,<span style="color: black;">能够</span><span style="color: black;">根据</span>以下<span style="color: black;">办法</span>来操作!!</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">首要</span>,emlog后台进入》》设置》》seo设置</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">最傻瓜的<span style="color: black;">起始</span>,<span style="color: black;">咱们</span>设置SEO三大标签,title、keywords和description, 这些是用户在搜索引擎结果列表看到的信息,对关键词排名有决定性的影响。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://p3-sign.toutiaoimg.com/efb00037e1e3f2f6f4d~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728084301&x-signature=tlemonqg3IRdY8uZ1CHuMeegcJ4%3D" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">如上图所示,三大标签怎么写就<span style="color: black;">不消</span>说了... 不懂请<span style="color: black;">自动</span>百度</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">文案</span>浏览器标题<span style="color: black;">方法</span><span style="color: black;">意见</span><span style="color: black;">选取</span><span style="color: black;">文案</span>标题_站点标题, <span style="color: black;">这般</span>的话以后改的话比较好<span style="color: black;">掌控</span>,而浏览器标题默认<span style="color: black;">亦</span><span style="color: black;">便是</span>首页标题,不<span style="color: black;">意见</span>选这个。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">跟着<span style="color: black;">便是</span><span style="color: black;">归类</span>页、标签页、作者页、搜索页等等,文件都在include/controller/ 里面。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">为何</span>要修改呢? <span style="color: black;">由于</span><span style="color: black;">归类</span>页默认调用的是浏览器标题而不是站点标题。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">举个例子, 例如本站...</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">站点标题是:XX博客</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">而浏览器标题是XX博客_关键词1_关键词2_一个XXXXX的博客</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">那样</span>网站<span style="color: black;">归类</span>的标题就会是 <span style="color: black;">归类</span>标题_XX博客_关键词1_关键词2_一个XXXXX的博客</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">标题太长,<span style="color: black;">有害</span>于用户体验。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">因此</span><span style="color: black;">咱们</span>需要修改一处<span style="color: black;">地区</span>,把它改为 <span style="color: black;">归类</span>标题_站点标题。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">以<span style="color: black;">归类</span>页为例子,文件是:sort_controller.php ,这个文件<span style="color: black;">咱们</span>用notepad++打开。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://p3-sign.toutiaoimg.com/efb00037e1df1806b13~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728084301&x-signature=0nZTIJAEdiYMWjgRvOOQ484jvzI%3D" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">找到大概43行,把$site_title 改成 $blogname </p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">亦</span><span style="color: black;">便是</span>不调用浏览器标题了,改为调用站点标题。 好了,<span style="color: black;">此刻</span>保存文件,上传覆盖原文件,<span style="color: black;">而后</span>刷新一下<span style="color: black;">归类</span>页,<span style="color: black;">瞧瞧</span>标题是不是改变了??</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">这个<span style="color: black;">办法</span><span style="color: black;">能够</span>用于更改搜索页、标签页、作者页、存档页的修改,这些文件都存放于include/controller/ 文件夹,<span style="color: black;">大众</span><span style="color: black;">能够</span><span style="color: black;">根据</span>上面的<span style="color: black;">办法</span>来修改。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">好了,下面<span style="color: black;">便是</span><span style="color: black;">处理</span>页面标题重复的问题了,<span style="color: black;">大众</span>都<span style="color: black;">晓得</span>emlog默认一页只<span style="color: black;">表示</span>10篇<span style="color: black;">文案</span>,超过10篇就会分页,<span style="color: black;">通常</span><span style="color: black;">来讲</span><span style="color: black;">咱们</span>做个人博客的,肯定会写好几十篇<span style="color: black;">或</span>几百篇的<span style="color: black;">文案</span>,<span style="color: black;">那样</span>分页<span style="color: black;">亦</span>有好几十页吧?</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">然则</span><span style="color: black;">咱们</span>打开第1页、第1页<span style="color: black;">或</span>第100页,却<span style="color: black;">发掘</span>这些分页的网页标题跟首页都是<span style="color: black;">同样</span>的?! 纳尼?!这不<span style="color: black;">便是</span>一个网站有好几百个相同标题的网页吗?这个是<span style="color: black;">有害</span>于SEO优化的。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">不外</span>不打紧,下面就让<span style="color: black;">咱们</span>来<span style="color: black;">处理</span>这个问题。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">首要</span>用notepad++打开,打开所用模板文件夹中的module.php文件, <span style="color: black;">而后</span>拉到最后,添加以下代码:(这段php代码从舍力博客那里直接复制过来的)</p><?php function page_tit($page) {<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">if ($page>=2){ echo _第.$page.页; }</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">}</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">?></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">这个代码的<span style="color: black;">功效</span><span style="color: black;">便是</span>,判断当前分页数大于或等于2的时候,就会输出相对应的文字。<span style="color: black;">第1</span>页的话,不会<span style="color: black;">表示</span>。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">ok,添加了之后,<span style="color: black;">保留</span>,上传覆盖原文件。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">而后</span>打开header.php文件,找到<title>标签</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在<title></title>里面加上<?php echo page_tit($page); ?></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">例如:<title>XX博客_XXXX描述<?php echo page_tit($page); ?></title></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">OK, <span style="color: black;">这般</span>的话,网页标题重复的问题就完美<span style="color: black;">处理</span>了。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">下面<span style="color: black;">处理</span>友情链接所有页面都<span style="color: black;">表示</span>的问题,emlog侧边栏有个“链接”的组件,用来添加友情链接的,<span style="color: black;">然则</span><span style="color: black;">由于</span>有些emlog模板它是不对侧边栏的链接进行限制的,<span style="color: black;">亦</span><span style="color: black;">便是</span>所有页面都会调用。<span style="color: black;">这般</span>的话,就变<span style="color: black;">成为了</span>你跟人交换链接,人家只是在首页放你的链接,而你却全站都挂上了别人的链接了。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">其实<span style="color: black;">处理</span>这个问题比较简单,打开所用模板文件夹中的module.php文件</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">而后</span>去到235行,<span style="color: black;">根据</span>提示去掉双斜杠注释<span style="color: black;">就可</span>。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://p3-sign.toutiaoimg.com/e520000f7fe7a7632df~noop.image?_iz=58558&from=article.pc_detail&lk3s=953192f4&x-expires=1728084301&x-signature=OTDwZLY%2Fg%2ByCStSiA4bajL%2F9x9o%3D" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">基本上<span style="color: black;">根据</span>上面的修改<span style="color: black;">办法</span>的话,你的个人博客网站将有利于SEO。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">剩下的<span style="color: black;">便是</span>全心全意的创作<span style="color: black;">优秀</span>内容,交换友链神马的,相信网站的排名<span style="color: black;">必定</span>会比以前更好。</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">源自</span>:EM论坛 bbs.emlog.net</p>
</div>
“板凳”(第三个回帖的人) i免费外链发布平台 http://www.fok120.com/ 我深感你的理解与共鸣,愿对话长流。
页:
[1]