wordpress验证google网站管理的方法|PHP元标记

很多朋友在验证google管理工具时都首选,上传一个***********.html文件的方法,实际上这样很不好。
原因一,众多的国内主机商都使用自己的默认404出错页面,是的成功返回200. 这样会很好的留住访客,可是搜索引擎蜘蛛就不喜欢了,会造成它复制重复页面,因此google是不能够准许这样的网站用这种方式通过验证;
 所以选用第二种方案。
但是很多朋友遇到的是提示:元标记是否位于网页的正确位置?
这个是因为 wp的首页 index.php是很简单的几行代码,不能光添加元文件,还得起码的加上 head 标记。最后几行是添加的代码:
 

版权所有© HzlzH | 本文采用 BY-NC-SA 进行授权
转载需注明 转自: 《wordpress验证google网站管理的方法|PHP元标记

随机文章

{ Leave a Reply ? }

  1. zp1214 China Google Chrome Windows

    没听懂你在说什么。
    而且这个根PHP元标记有什么关系呢?

  2. zp1214 China Google Chrome Windows

    我在Godaddy免费空间上架设的WP就没正确输出过RSS,可能是某些组件给限制了吧

  3. bolo China Internet Explorer Windows

    我喜欢上传文件,懒得改代码

  4. 我之前一直都是喜欢用文件来验证的
    觉得不喜欢让页面多更多的代码 但是
    看月光等大博客都是用代码的

  5. ghw China Mozilla Firefox FreeBSD

    :oops: 留名~~~

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

:wink: :twisted: :roll: :oops: :mrgreen: :lol: :idea: :evil: :cry: :arrow: :?: :-| :-x :-o :-P :-D :-? :) :( :!: 8-O 8)