|
本帖最后由 浪迹天涯 于 2010-9-13 15:38 编辑
DZ优化实战教程
系列教程,务必从1开始看起。
转载务必保持全文完整,不得有任何删减,保持所有链接。否则,请不要转载,谢谢。
本文首发:赚客论坛(Http://www.ABestForum.com)
Archiver页优化
鸡肋,建议后台直接关闭,虽然可以给你带来一定的流量,但全静态文本,对网站优化没什么效果,而且广告显示效果也不好。
如果要保留,请按下面的操作优化一下。
打开FTP根目录,找到archiver/index.php
7.2中,有一个小BUG,少了一个<head>,在<html xmlns="http://www.w3.org/1999/xhtml"> 下加一个<head>
接着往下看,找到- Powered by Discuz! Archiver,将其删除。
同样,将keywords及description删除,鸡肋,要不不写,要写就要认真写。
搜索Powered by,加上nofollow,也可以加上自己的一两个链接,视个人情况而定。
建立404页面,可以参考赚客之家(http://www.abestforum.com/404.php)
robots.txt的写法:
这只是一个示例,大家根据自己的情况进行修改。
User-agent: *
Disallow: /404.html
Disallow: /viewthread.php
Disallow: /redirect.php?tid=
Disallow: /?fromuid=
Disallow: /?fromuser=
Disallow: /attachment.php?aid
Disallow: /tag.php
Disallow: /admincp.php
Disallow: /ajax.php
Disallow: /digest.php
Disallow: /logging.php
Disallow: /member.php
Disallow: /memcp.php
Disallow: /misc.php
Disallow: /my.php
Disallow: /pm.php
Disallow: /post.php
Disallow: /register.php
Disallow: /search.php
Disallow: /seccode.php
Disallow: /topicadmin.php
Disallow: /space.php
Disallow: /space-uid
Disallow: /modcp.php
Disallow: /mailto
Disallow: /admin/
Disallow: /api/
Disallow: /attachments/
Disallow: /customavatars/
Disallow: /images/
Disallow: /forumdata/
Disallow: /include/
Disallow: /ipdata/
Disallow: /templates/
Disallow: /plugins/ |
|