2

I generate automatically the sitemap.xml on publish of content on my website, however some of the content will be publish starting from an specific date and time.

Is there any tag that I can add to a sitemap or any other way to cater for this? so that the google/bing... bots would know to only index the content if the date is greater than 'now'.

I know that I could use a task scheduler to update the sitemap file when the content publish date is reached but I was trying to avoid that solution.

2

I suppose you could set the "last-modified" attribute to the date and time in the future when it will be published.

You can read up on the supported attributes here.

Search engines don't give much weight to sitemap.xml files compared to the actual structure of your site as visible to a human so your time is almost certainly better spent on something else.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.