Is there a way to exclude specific nodes from the sitemap? I have a page node which I do not want to be indexed.

Thanks,

Comments

dave reid’s picture

Status: Active » Closed (duplicate)

It's definitely being planned as a feature to be included in the 6.x-2.0 version and most of the underlying code is already there. I just haven't gotten to it yet. :)

If you want you can use the following SQL to remove the node from your sitemap: UPDATE xmlsitemap SET status = 0 WHERE id = x AND type = 'node';. Be sure to replace x with the specific node's ID.

I'm also going to mark this as a duplicate #470882: Individual node priority/exclusion

mediumgrade’s picture

Perfect. Thanks.

mediumgrade’s picture

Ran the query and I see in the table that status is indeed set to '0' for the correct node, but the link is still being displayed in the sitemap. Is there something else I need to run in order for the sitemap to reflect the current data?

dave reid’s picture

Ah, the module is getting too smart. Since we just modified the db directly, the module doesn't think that anything has changed and the sitemap doesn't need to be updated. If you go to admin/settings/xmlsitemap/rebuild and select just 'xmlsitemap' from the list, it will regenerate the sitemap files.

mediumgrade’s picture

Ha! Got it. Work fine now.

Thanks again!