标题 | zblog分类页标题重复的优化 |
内容 | 无聊上自己博客看看,点了几个页面就发现一个问题。我博客分类页的标题怎么第一页和后面的页数都是一样的,这一点相信大家都知道对于seo优化是很不好的 一点。我也看了同样的一些个人zblog博客也存在这样的问题。于是我在网上就找了关于修改zblog分类页标题优化的方法,但是我试了一些,没有成功。 最后疯子花时间再做了一些修改,现在已经ok了,大家可以看看疯子博客的分类页名称。现在疯子就给大家详细的说一下关于zblog分类页标题重复的优化方 法。 首先需要大家的zblog博客上装了titleseo插件,然后我们找到titleseo插件的所在目录,在z-blog的所在根目录下--plugin 目录下--titleseo文件夹,在这个文件夹里面有两个文件。分别是include.asp和plugin.xml。include.asp是该插件 的主程序,plugin.xml文件为插件信息。我们一个方法是通过ftp软件下载include.asp这个文件到本地进行修改,可以用记事本、dw等 编辑软件。另一种方法就是在博客的管理后台的文件管理里面进行编辑修改。 疯子用的是第二种方法,直接在后台进行修改。打开include.asp这个文件,找到下面这段代码: function titleseo_catalog(byref ftemplate) if isempty(ftemplate) then exit function if request.querystring(cate) <> or _ request.querystring(auth) <> or _ request.querystring(date) <> or _ request.querystring(tags) <> then ftemplate = titleseo_replacecode(ftemplate,<#blogtitle#> <#zc_msg044#> <#zc_blog_title#>) else call titleseo_default(ftemplate) end if end function 将这上面的这段代码替换成下面的这段代码 function titleseo_catalog(byref ftemplate) if isempty(ftemplate) then exit function if request.querystring(cate) <> or request.querystring(auth) <> or request.querystring(date) <> or request.querystring(tags) <> then ftemplate = titleseo_replacecode(ftemplate,<#blogtitle#><#zc_msg044#><#zc_blog_subtitle#>- 第<#articlelist/page/now#>页) elseif request.querystring(page) <> then call titleseo_default(ftemplate) else ftemplate = titleseo_replacecode(ftemplate,<#blogtitle#><#zc_msg044#><#zc_blog_title#>- 第<#articlelist/page/now#>页) end if end function 这样我们就完成了分类页标题的优化。最后大家要记得文件重建一下。想看效果的可以参考下疯子的seo博客的分类页面的title标签样式,分类名-博客名-第x页。 |
随便看 |
|
在线学习网考试资料包含高考、自考、专升本考试、人事考试、公务员考试、大学生村官考试、特岗教师招聘考试、事业单位招聘考试、企业人才招聘、银行招聘、教师招聘、农村信用社招聘、各类资格证书考试等各类考试资料。