After making sure that the module seemed to work on my test site, I decided to give it a try on my production site by migrating from test to production. I dropped all database tables and restored from a backup, etc.
The sitemap.xml reflected the test URL, even after rebuilding. I also tried to disable all XML modules, at which point the xmlsitemap table appears to have been dropped. As soon as I enabled the module again, sitemap.xml shows the test-site URLs again, not the production URLs.
Is the URL information being cached somewhere? If so, there should be a way to clear it and start over.
If this is stupid user error, I'm sorry, but at least I'll be a proxy for other stupid users.
If there is other info that would be helpful, let me know.
Comments
Comment #1
avpadernoNormally, if you want to use a module in a production site, you simply install the module on the Drupal installation you have in your production server.
It seems the procedure you followed is not the correct one.
Comment #2
dave reid@jsibley: Here's a few thing you might want to check:
1. Make sure the 'Base URL' textarea (under 'Advanced Settings') is correct
2. Make sure the cached sitemap files are regenerated by going to admin/settings/xmlsitemap/rebuild and *don't* select any of the modules, but still hit the big-ol' 'Rebuild sitemap' button.
The only URL information that is stored is the relative path to each link. For example, if this page were to be stored in the sitemap table, it would be stored as "node/525698". It's only during the sitemap generation that the full links are built.
Comment #3
jsibley commentedIndeed the Base URL textarea needed to be updated to reflect the change in location (your suggestion #1). Then, after rebuilding, everything looks fine.
I imagine the Base URL gives added flexibility, but at the expense of potential confusion when migrating sites.
Thanks for the speedy response.
Jonathan
Comment #4
dave reidGlad we could get it figured out! Marking as fixed.
Comment #6
clawki commentedJonathon thanks for serving as proxy. Dave Thanks for the solution (didn't even notice that link :-((