php-sitemap-generator
php-sitemap-generator copied to clipboard
Submit existing sitemap
Is there a way of submitting an existing(just pass in filename or content as string) sitemap?
If so, please provide an example.
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.