GOOGLE报告提示:

您 Sitemap 中的全部网址具有相同的优先级。 优先级表示特定网址相对于您网站上其他网址的重要性,并不会影响您网页的搜索结果性能。

您 Sitemap 中的全部网址设定为相同的优先级(非默认优先级)。 如果所有网址具有相同的优先级,Google.com 将无法判定哪些网址更重要。

再查看我们的XML

%26lt;url%26gt;

%26lt;loc%26gt;http://www.yishengdg.com/Index.html%26lt;/loc%26gt;
%26lt;lastmod%26gt;2008-06-24%26lt;/lastmod%26gt;
%26lt;changefreq%26gt;daily%26lt;/changefreq%26gt;
%26lt;priority%26gt;1.0%26lt;/priority%26gt;
%26lt;/url%26gt;

由于大部分的网站地图都是工具生成的,而且现在的几款工具,存在一个最大的毛病就是,没有对网页的优先级进行设置,统一用%26lt;priority%26gt;1.0%26lt;/priority%26gt; 代入,生成的的XML全部是一样的优先级,我对生成的地图文件进行修改

将首页的优先级别不动,仍然为1.0,将产品的优先级别修改为0.9,将其他的改为0.8

今日上GOOGLE查看,OK !警告信息消除了

但是这样,每次生成XML都要修改,是很麻烦

生成网站地图的程序为(我的空间为ASP)

Function getfilelink(file,datafile)
file=replace(file,root,%26quot;%26quot;)
file=replace(file,%26quot;\%26quot;,%26quot;/%26quot;)
"加入代码,不会ASP,只能看懂一些
file=replace(file,wangmin,%26quot;%26quot;) "这里是我自己修改的,原来显示带绝对路径了,和本文无关
If FileExtensionIsBad(file) then Exit Function
if month(datafile)%26lt;10 then filedatem=%26quot;0%26quot;
if day(datafile)%26lt;10 then filedated=%26quot;0%26quot;
filedate=year(datafile)%26amp;%26quot;-%26quot;%26amp;filedatem%26amp;month(datafile)%26amp;%26quot;-%26quot;%26amp;filedated%26amp;day(datafile)
getfilelink = %26quot;%26lt;url%26gt;%26lt;loc%26gt;%26quot;%26amp;server.htmlencode(session(%26quot;server%26quot;)%26amp;seoDir%26amp;file)%26amp;%26quot;%26lt;/loc%26gt;%26lt;lastmod%26gt;%26quot;%26amp;filedate%26amp;%26quot;%26lt;/lastmod%26gt;%26lt;changefreq%26gt;daily%26lt;/changefreq%26gt;%26lt;priority%26gt;%26quot;%26amp;cccc%26amp;%26quot;%26lt;/priority%26gt;%26lt;/url%26gt;%26quot; "cccc为优先级
Response.Flush
End Function

ASP不会,呵呵, 给大家一个修改思路, 我们可以写一个判断语句 if file 包含 index.html cccc=%26quot;1.0%26quot; else if file 包含 产品目录 cccc=%26quot;0.9%26quot; else cccc=%26quot;0.8%26quot;
思路是这样,程序如果哪位朋友修改,记得把程序贴出来

文章来源:http://www.yishengdg.com QQ:1003002126

昨日,我写了一篇%26lt;%26lt;GOOGLE警告信息你了解多少%26gt;%26gt;是关于GOOGLE最新一个警告的描述,通过了解,一些站长也出现了类似的情况,不管是不是GOOGLE新出的规则,反正出现了问题就要及时解决.