File not found: sitemap-1.xml
| Project: | XML sitemap |
| Version: | 6.x-2.x-dev |
| Component: | xmlsitemap.module |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
I've installed v 1.20.2.45.2.47 2009/05/09 22:26:41 of xmlsitemap on my dev box.
Everything works really well (rebuild script is brilliant, addition of CSS to the sitemap is a great addition) but ...
I can open sitemap.xml but it refers (links) to two other files, sitemap-1.xml and sitemap-2.xml that cannot be found using the link in sitemap.xml
I've verified that the files do exist but we're running a psuedo multi-site setup so maybe sitemap.xml is assuming an incorrect URL?
In our scheme, sitemap files are located at sites/default/files/sitemaps/sitemap-1.xml
http://localhost/connect/sitemap.xml - resolves fine
http://localhost/connect/sitemap-1.xml - doesn't resolve
http://localhost/connect/sitemap-2.xml - doesn't resolve
Thanks for your help.
Kevin
| Attachment | Size |
|---|---|
| sitemap.png | 34.36 KB |

#1
In what regards do you mean psuedo multi-site setup? Do you have xmlsitemap enabled on more than one of the sites that share the sites/default/files/sitemaps folder?
#2
The client had us set up the site similar to a multi-site configuration so they could, if they wanted to, add other sites in the future. To answer your question, no, there are no other sites running on this server.
I mentioned this because the files folder is not in the traditional /files location but is at /sites/default/files
The xmlsitemap code appears to know about the location because it successfully created the /xmlsitemaps folder at /sites/default/files/xmlsitemaps
#3
That is the directory normally used in Drupal 6, which doesn't use the /files directory anymore.
#4
Oh, okay. Thanks for the clarification Kiam.
I guess that brings us back to square 1:
http://localhost/connect/sitemap.xml - resolves fine
http://localhost/connect/sitemap-1.xml - doesn't resolve
http://localhost/connect/sitemap-2.xml - doesn't resolve
sitemap-1.xml and sitemap-2.xml were properly created and do exist but the link to them (from sitemap.xml) results in a page not found error.
#5
Can you try visiting your admin/build/modules page and then seeing if the sitemap-1.xml and sitemap-2.xml pages resolve?
#6
Click also on the Save configuration button at the bottom of the form.
#7
WooHoo!
That did the trick.
Thanks for your help!
#8
#9
#10
Automatically closed -- issue fixed for 2 weeks with no activity.