kjvarga / sitemap_generator

SitemapGenerator is a framework-agnostic XML Sitemap generator written in Ruby with automatic Rails integration. It supports Video, News, Image, Mobile, PageMap and Alternate Links sitemap extensions and includes Rake tasks for managing your sitemaps, as well as many other great features.
MIT License
2.44k stars 277 forks source link

Google search correct ping url #418

Open unlimit opened 1 year ago

unlimit commented 1 year ago

Hi! Accordingly to https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap, correct ping url for google is https://www.google.com/ping?sitemap=FULL_URL_OF_SITEMAP, but this gem uses http://www.google.com/webmasters/tools/ping?sitemap=%s. https://github.com/kjvarga/sitemap_generator/blob/28dd22c48597f8b2a44cbc7e20685e84975fe75b/lib/sitemap_generator/link_set.rb#L128 What is the correct url?

davidpan commented 1 year ago

I tested it and both addresses work fine. If you want to use the address you mentioned, you can refer to

SitemapGenerator::Sitemap.ping_search_engines(newengine: 'http://newengine.com/ping?url=%s')
nanego commented 7 months ago

We can certainly close this issue as pings to Google have been deprecated and all requests to these endpoints will result in a 404 error: https://developers.google.com/search/blog/2023/06/sitemaps-lastmod-ping