When I generate the sitemap manually by selecting "Rebuild sitemap" then everything is fine.
Example:
http://germany-dev.ni.com/
http://germany-dev.ni.com/academic-events
http://germany-dev.ni.com/academic/training

When the sitemap is generated by cron the URLs contain the virtual account name:
http://germany-dev.ni.com/~globald/
http://germany-dev.ni.com/~globald/academic-events
http://germany-dev.ni.com/~globald/academic/training

I believe this is caused by the fact that our cron is launched in this context (http://IP-address/~globald/cron.php).

Note: we also use domain_access and domain_xmlsitemap modules, but I don't believe that's the root cause of the issue.

Thanks,

Comments

Anonymous’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Yes, http://IP-address/~globald/cron.php is the issue.

I think setting $base_url in your settings.php file will help. If not you'll need to modify your cron entry to use http://germany-dev.ni.com instead of the IP address.

Anonymous’s picture

Issue summary: View changes

Formatting change

dave reid’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closing due to lack of response.