I have a Drupal 5 site with the xmlSitemap module enabled.
When i look at my xml file i see node/#### for thousands of entries. However there are Aliases set up for those nodes.
What's worse is that the Alias is NOT in the xml file.
ex. of node/123 which is the about-us page
site.com/node/123 appears in sitemap.xml
site.com/about-us Does not appear in sitemap.xml
If I go to site.com/node/123 and select edit then immediately save it then the node/123 leaves the map, but the about-us does NOT appear in the map!
I am told that the issue queue of the module is aware of this. I am not asking anyone in here to fix a module.
I want to know what my options are for getting a working sitemap for my Drupal5 site. If the module intended to do the job is incapable then I need alternatives. I would also like to know how important the sitemap really is. I know that all of our pages get indexed, but they do not appear in the sitemap. Is that ok?
- Doug Vann

Comments
Try installing the Module
Try installing the Module Weight module from http://drupal.org/project/moduleweight. Then give the xmlsitemap module a weight of 10 to ensure that it is generated after the pathauto module. Your urls should then appear correctly in your sitemap.
database
You can also change module weights directly in the database ("system" table). Are you sure that this will fix the problem?
-Mike Goodwin
Red Leaf Media
http://www.redleafmedia.com
Sadness on the Weight theory.
I went into the DB and changed the weight field to -1 for the xmlsitemap.module.
All the other modules are weighted ZERO.
I cleared cache and reloaded the sitemap.xml
I still can not find the alias url in the map; only the node/####
I was pretty excited about that idea. I had hope.
- DV
You want the weight to be
You want the weight to be higher than the the other modules. If it is set to -1, then it will generate the sitemap before the alias is called and will display the node/xxxx url. Try changing it to 10 and see if you get the desired results.
This is how I set up all my xml sitemaps because I heavily rely on pathauto and need to have the aliases display correctly in the sitemap.
Michelle Schmidt
Drupal SEO
definitely should be above 0
I agree. Set it to something higher than the other modules. That way, their hooks are invoked first, before the xml sitemap hooks have a chance to run. It sounds like she's used it before. So you can be confident that it will work appropriately.
-Mike Goodwin
Red Leaf Media
http://www.redleafmedia.com
silly me
I changed the weight to 1 then cleared cache and no change
i tried it with a weight of 10 as well
I still have some pages showing as nodes and not showing as aliases.
when i edit a page and immediately re save it what else happens besides the time stamp changing?
If i just write a script to update the timestamp is there a chance i will fool drupal into counting the alias instead of the node?
I CAN NOT go into thousands of nodes and edit/re-save them. There has got to be a programatic solution.
If its not the timestamp, is it some flag of somekind? What can i change to fake drupal out?
- DV
few things...
The order of install does not matter, as far as I know. The module weight in the system table should be all that matters. After you changed the weight, did some of the nodes change appropriately to the aliases? If there were some that did not change, is there a commonality between them (node types, taxonomy, etc.)? That might point you towards the fix.
-Mike Goodwin
Red Leaf Media
http://www.redleafmedia.com
Yeah, I don't think the
Yeah, I don't think the order of install matters either. I would also add to check the versions of both xmlsitemap and pathauto to make sure they are current. I vaguely recall having issues awhile ago on older versions.
Michelle Schmidt
Drupal SEO
Did you install pathauto
Did you install pathauto first and then the sitemap module??
Netlink Technologies Ltd
http://shyamala-drupal.blogspot.com/
Shyamala
Unimity Solutions
order of installation is important
i also faced the same problem .
i just uninstalled and installed again the sitemap i got success.
it may be simple but effective.......
www.newsreader247.com
www.newsreader247.com
Didn't work for me
That didn't work for me. I use Drupal 5.10. Which version of Drupal are you using ?
Also I made an issue about a small bug in xmlsitemap_node here:
http://drupal.org/node/303470
I also made the maintainer aware of my problem with no url alias in the sitemap and only /node/ alias. I don't think it showed up as a bug request.
Even a turtle reaches it´s goal...Reinstall of XMLsitemap didn't work
the site is 5.8 because, against my wishes, someone was allowed to hack core.
Now that i have reinstalled the XMLsitemap, we have two maps.
What's worse??? We have a LOT MORE node/#### then we ever had.
I give up. I'm turning off the xmlsitemap and calling this finished.
- DV
latest version 5.x-1.6
hi,
im using the latest version 5.x-1.6.
please checkout my Site map file: http://cpirf.org/sitemap.xml
www.newsreader247.com
www.newsreader247.com
I'm not sure why this is an issue
I'm not sure why this is an issue so please explain it to me if I'm wrong. When configured properly with something like Global Redirect (and Pathauto's new "create new alias" feature), Drupal will send search engine crawlers from the node/nid path to the path alias with a 302 redirect. This way path aliases of nodes can change over time and the node IDs don't have to.
Found a fix for Drupal 6.x
I was experiencing a similar problem on a Drupal 6.x install very recently. I was able to fix the problem by disabling, uninstalling, and reinstalling the "XML Sitemap: Node" and "XML Sitemap: Term" modules. (Note: I did NOT disable/uninstall/reinstall the "XML Sitemap: Engines" or main "XML Sitemap" modules.) When the Node and Term modules were reinstalled, they properly added the aliased paths to sitemap.xml.
Todd Ross Nienkerk
Co-founder, Four Kitchens
Todd Ross Nienkerk
Digital Strategist and Partner
Four Kitchens: Big ideas for the web
IRC: toddross
work around in D5
hello, I had the same issues(node/####....) than Doug with my sitemap.xml .
And I was able to solve them.
I followed the first advise which was to install the "module weights" and the Set the weight to the xmlsitemap module and other related modules (xml sitemap:node,...) to 10. but this work around was not improving my sitemap.xml
So Ive read the last comment of Todd about his D6 website and uninstalled and reinstalled all my XML sitemap related modules.
and now its working.
hope this can help,
Mohtadi
Angel Child Magazine
No need to use xml sitemap
Sitemap doesnt increase your page rank. Dont use that.
I used xml sitemap for http://www.ohmybaby.in but it didnt follow robots.txt
Pages like .... users/sathya were shown in the xml sitemap and it was indexed by the google.
Finally i removed that.
xmlsitemap_user
or you could have disabled just the module which was adding user pages to google. that would be "XML Sitemap: User", whose module description says,
...
If my comments have helped you, please pay it forward!
Use issue queues to discuss module issues - this will help your questions assist others (including yourself!) in future.
Important issue? Yes!
The fact is that your node URL is important to good SEO. If Google finds a node that is simply yourdomain.com/node/124 all it sees is content. However, if you're properly formatting some of your URLs and you give Google something like yourdomain.com/blogs/my-blog-title-05142012, Google understands quite a bit more about that node from the URL.
I have in fact had clients where we set up a blog site and because we properly configured the URLs, their daily updates were immediately included in relevant Google Finance sections.
Of course, this kind of behavior may not be important to everyone and every site, but I think it's worth understanding that you can take all the time in the world to properly configure your path aliases, but if your XML Sitemap is not working correctly, all that's getting sent to Google is node/XXX and that should be corrected.