Closed (duplicate)
Project:
XML sitemap
Version:
6.x-2.x-dev
Component:
xmlsitemap_node.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 May 2009 at 22:22 UTC
Updated:
2 Jun 2009 at 01:20 UTC
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
Comment #1
dave reidIt'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
Comment #2
mediumgrade commentedPerfect. Thanks.
Comment #3
mediumgrade commentedRan 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?
Comment #4
dave reidAh, 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.
Comment #5
mediumgrade commentedHa! Got it. Work fine now.
Thanks again!