Pinging google sitemap after every new article submission?

后端 未结 4 1128
时光取名叫无心
时光取名叫无心 2020-12-24 06:49

As you may know, by using the following url, you can \'ping\' google to update its record of your sitemap:

https://www.google.com/ping?sitemap=URLOFSITEMAP.x         


        
4条回答
  •  孤城傲影
    2020-12-24 07:03

    Yes, that method is allowed by google.

    1. Issue your request to the following URL:

      www.google.com/webmasters/tools/ping?sitemap=sitemap_url

      For example, if your Sitemap is located at http://www.example.com/sitemap.gz, your URL will become:

      www.google.com/webmasters/tools/ping?sitemap=http://www.example.com/sitemap.gz

    2. URL encode everything after the /ping?sitemap=:

      www.google.com/webmasters/tools/ping?sitemap=http%3A%2F%2Fwww.yoursite.com%2Fsitemap.gz

    3. Issue the HTTP request using wget, curl, or another mechanism of your choosing.

    ADDED:

    Based on the link I just given, there is an info in there, google says:

    We recommend that you resubmit a Sitemap no more than once per hour.

提交回复
热议问题