秦爱曾经提过不少关于Sitemap的文章,也写过一些RSS的PING服务,不过,今天提得是如何手工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
【现有评论11条,我也说两句】




