Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google search correct ping url #418

Open
unlimit opened this issue Dec 2, 2022 · 2 comments
Open

Google search correct ping url #418

unlimit opened this issue Dec 2, 2022 · 2 comments

Comments

@unlimit
Copy link

unlimit commented Dec 2, 2022

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.

:google => "http://www.google.com/webmasters/tools/ping?sitemap=%s",

What is the correct url?

@davidpan
Copy link

davidpan commented Apr 11, 2023

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
Copy link

nanego commented Jan 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants