Ticket #71 (closed 需求: 已处理)

Opened 13 years ago

Last modified 13 years ago

SEO各网论坛sitemap需求

Reported by: dingjianyong Owned by: dingjianyong
Priority: 重要的(3) Milestone:
Component: 核心模块 Version: BBS7.0
Keywords: Cc:
Due Date: 18/09/2013

Description

为了各网通知搜索引擎他们网站上有哪些可供抓取的网页,方便爬虫收录论坛页面,各网论坛需要生成sitemap文件。

目前解决方案是在服务器上添加对应的groovy脚本,通过配置定时任务每天跑此脚本,生成sitemap文件,供各搜索引擎使用。

Change History

comment:1 Changed 13 years ago by dingjianyong

实现方式:
groovy脚本: http://svn.demo.pc.com.cn/svn/bbs7/trunk/src/main/groovy/sitemap

  1. 由于电脑网nginx配置规则差异,电脑网有独立的sitemap脚本,汽车网sitemap脚本与其余各网一致,只是对应数据源和域名不同。
  2. 为了减轻数据库压力,定时任务放在每天早上的7点执行,主服务器从数据库获取数据生成sitemap文件,然后其余服务器从主服务器中拷贝过来,避免多台机器运行脚本而增大数据库压力的情况。

各网sitemap地址:
 http://itbbs.pconline.com.cn/google_sitemap/itbbs_pconline_com_cn_index.xml
 http://itbbs.pconline.com.cn/soso_sitemap/itbbs_pconline_com_cn_index.xml
 http://itbbs.pconline.com.cn/360_sitemap/itbbs_pconline_com_cn_index.xml
 http://bbs.pcauto.com.cn/google_sitemap/bbs_pcauto_com_cn_index.xml
 http://bbs.pclady.com.cn/google_sitemap/bbs_pclady_com_cn_index.xml
 http://bbs.pcbaby.com.cn/google_sitemap/bbs_pcbaby_com_cn_index.xml
 http://bbs.pcgames.com.cn/google_sitemap/bbs_pcgames_com_cn_index.xml
 http://bbs.pchouse.com.cn/google_sitemap/bbs_pchouse_com_cn_index.xml

comment:2 Changed 13 years ago by dingjianyong

  • Owner changed from qinhongyuan to dingjianyong
  • Status changed from new to accepted

comment:3 Changed 13 years ago by dingjianyong

  • Status changed from accepted to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.