Closed (won't fix)
Project:
Domain
Version:
5.x-1.0
Component:
- Domain User
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Mar 2008 at 17:52 UTC
Updated:
12 Mar 2008 at 18:57 UTC
I was talking with 'grndlvl' about this as well as some others, but it would seem that when you add a subdomain that the XMLsitemap that is created for each subdomain is based on the root domain.
I am not sure if this is something I should be brought here or to the XMLsitemap issue queue, but it would appear that that this is a pretty big issue that no one seemed to realize.
Please let me know if there is something to patch this or what we can do for a solution.
Comments
Comment #1
agentrickardI do not believe that is the case. If XML Sitemap follows node access rules, it will be unique per subdomain.
grndlvl is still using an earlier version of the module that does not contain this feature.
However, you generally just want one sitemap. The solution is provided:
1) Install the custom_url_rewrite patch
2) Add the 'xmlsitemap' path to the 'Special Page Requests' element of the settings page. (Check the code for XMLSitemap to see what the correct path is).
See section 4.4 of the main README file.
If XML Sitemap does not implement node_access via db_rewrite_sql(), that might be a bug over there.
This will force all nodes to be viewable on the path 'xmlsitemap' and write those links to go to the appropriate source domain.
Comment #2
agentrickardOK. xmlsitemap module does not:
a) use db_rewrite_sql()
b) use the url() function
These may both be bugs in xmlsitemap module. It will not, for instance, apply access control to content that anonymous users should not see. Why let Google see that content? I don't understand.
Patching xmlsitemap_url() function may solve part of the problem, but it looks as though only one file will be written for each site.
Comment #3
agentrickardYou might also try http://drupal.org/project/site_map