php-sitemap-generator icon indicating copy to clipboard operation
php-sitemap-generator copied to clipboard

Submit existing sitemap

Open goldingdamien opened this issue 3 years ago • 1 comments

Is there a way of submitting an existing(just pass in filename or content as string) sitemap?

If so, please provide an example.

goldingdamien avatar Apr 09 '22 23:04 goldingdamien

Hi there. Starting from version 5.0.0 this library supports submitting generated sitemaps only to Yandex, as the rest of the search engines have deprecated their ping endpoints. The submission is performed by sending a POST request to a search engine endpoint. See submitSitemap() for implementation.

icamys avatar Oct 23 '23 22:10 icamys