Automatically remove private pages from xml sitemaps
-
We have a website featuring rentals, and we set some houses to private when they aren’t available anymore.
This move, however, doesn’t remove them from the xml sitemap, so we end up having errors on the Google Console, that shows 404s to those old pages.
We know we can manually exclude them from the xml sitemap but, is there a way to do it automatically?
What if we set them as Drafts instead of Private, do you have any experience about it?
Thanks for any hint!
Regards,
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Automatically remove private pages from xml sitemaps’ is closed to new replies.