« 印客:圆你铅字梦想无名博客的博客性格 »

站点地图(Sitemap) PING服务

秦爱曾经提过不少关于Sitemap的文章,也写过一些RSSPING服务,不过,今天提得是如何手工PING一些站点地图。站点地图的作用是通知搜索引擎收录和快速索引你的网页,类似于搜索引擎提交的功能,不过是批量的而且具有即时更新的特征。曾经有SEOER说:只要你的网站已经被搜索引擎收录,那么可以不用Sitemap。我现在对此有怀疑的想法,因为最近在我的Google管理员工具中,我的Sitemap老提示网址超过,出现错误(现在问题也没有找到是什么原因,如果有朋友知道,还望指点一下,谢谢),结果是自从出现错误提示后,搜索引擎就再也没有抓取我的网页。下面,秦爱为大家提供的是几个知名搜索引擎的站点地图PING地址,还有一段自动PING Sitemap的代码。

站点地图PING地址

ASK:http://submissions.ask.com/ping?sitemap=

GOOGLE:http://www.google.com/webmasters/sitemaps/ping?sitemap=

MSN或LIVE:http://webmaster.live.com/ping.aspx?sitemap=

YAHOO:http://search.yahooapis.com/SiteExplorerService/V1/ping?sitemap=

注意:sitemap=后面填上你的sitemap绝对路径地址,例如秦爱的站点地图地址为:http://www.newsunday.com/sitemap.asp

自动PING Sitemap代码

下面这段代码是用ColdFusion来实现的,ColdFusion既是一种应用服务器也是一种编程语言。很多开发人员用ColdFusion语言(CFML - ColdFusion Markup Language)来编写应有程序,并把编写的应用程序运行在ColdFusion服务器上,通常情况下,coldfusion应用程序在 windows nt和 unix下也能正常运行。你如果需要详细了解可下载ColdFusion说明文档

<cftry>
<cfhttp url = "http://submissions.ask.com/ping?sitemap=
http://www.newsunday.com/sitemap.asp"
        redirect = "no">
</cfhttp>
<cfset AskPingStatus = cfhttp.statusCode>
<cfhttp url = "http://www.google.com/webmasters/sitemaps/ping?sitemap=
http://www.newsunday.com/sitemap.asp"
        redirect = "no">
</cfhttp>
<cfset GooglePingStatus = cfhttp.statusCode>
<cfhttp url = "http://webmaster.live.com/ping.aspx?sitemap=
http://www.newsunday.com/sitemap.asp"
        redirect = "no">
</cfhttp>
<cfset MSNPingStatus = cfhttp.statusCode>
<cfhttp url = "http://search.yahooapis.com/SiteExplorerService/V1/ping?
sitemap=http://www.newsunday.com/sitemap.asp"
        redirect = "no">
</cfhttp>
<cfset YahooPingStatus = cfhttp.statusCode>
 
<cfmail to = "admin#newsunday.com"
       from = "admin#newsunday.com"
       subject = "Multiple Site Map Ping Results"
       type = "html">
Ask: #AskPingStatus#<br/>       
Google: #GooglePingStatus#<br/>
MSN: #MSNPingStatus#<br/>
Yahoo: #YahooPingStatus#<br/>
</cfmail>
 
     <cfcatch type="any">
<cfmail to = "admin#newsunday.com"
       from = "admin#newsunday.com"
             subject = "Multiple Site Map Ping Error"
             type = "html">
     #cfcatch#
     </cfmail>
     </cfcatch>
</cftry>


注:在使用时,将站点地图和邮箱地址换成你自己的,由于本人非技术出身,没有尝试成功。如果你对此了解且设置成功了,希望能在评论中与大家分享一下,非常感谢。老外的原文为:How to Use ColdFusion to Ping the Ask, Google, MSN, and Yahoo Sitemap Services

  • 站点地图(Sitemap) PING服务(引用)
  • wotui.com
  • 秦爱曾经提过不少关于Sitemap的文章,也写过一些RSS的PING服务,不过,今天提得是如何手工PING一些站点地图。站点地图的作用是通知搜索引擎收录和快速索...
  • 2007-12-12 12:30:39
  • 1. sofish | http://www.happinesz.cn
  • 2007-12-9 1:22:20 | Reply
  • 3. 麦田里的守望者 | http://www.2000xg.com
  • 2007-12-9 10:55:59 | Reply
  • 5. ken | http://waacoo.com
  • 2007-12-9 13:09:40 | Reply
  • 6. ken | http://waacoo.com
  • 2007-12-9 13:10:47 | Reply
  • 8. qinai | 
  • 2007-12-9 15:40:08 | Reply
  • 9. sofish | http://www.happinesz.cn
  • 2007-12-9 15:52:34 | Reply
  • 10. qinai | 
  • 2007-12-9 16:01:53 | Reply
  • 11. 梦在飞翔 | http://www.god158.com
  • 2008-2-12 21:51:56 | Reply
  • 12. 问学堂减肥教练 | http://www.jianfei800.com
  • 2010-7-28 22:01:48 | Reply

发表评论

Search

网络资源

在线工具

搜索优化

博客日志

专题文章集

Copyright © 2004 秦爱网志 对部分内容保留所有权,博客程序归Z-Blog所有 沈阳ICP备05002435号