Download & Extend

Exclude URLs from the sitemap....

Project:XML sitemap
Version:6.x-2.x-dev
Component:xmlsitemap_node.module
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

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

#1

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

#2

Perfect. Thanks.

#3

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?

#4

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.

#5

Ha! Got it. Work fine now.

Thanks again!

nobody click here