Closed (fixed)
Project:
XML sitemap
Version:
5.x-1.7
Component:
xmlsitemap.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Nov 2009 at 12:11 UTC
Updated:
12 May 2010 at 22:30 UTC
Hallo,
Since I have enabled https on my site, the sitemap only works with https (https://www.example.com/sitemap.xml)
The URL http://www.example.com/sitemap.xml now shows in Firefox error 805303f4, https://www.example.com/files/xmlsitemap/gss.xsl
How can I fix this problem?
Thanks
Comments
Comment #1
dave reidLooks like this is possibly a bug with firefox. https://bugs.launchpad.net/ubuntu/+source/firefox-3.0/+bug/272348. I'm not sure how this could be fixed in the module code.
Comment #2
haus commentedThanks very much for your quick answer.
I think it is not firefox since IE also shows an error:
"The XML page cannot be displayed unable to display the XML input using XSL style sheet. Fix the error and then click Refresh or try again later.
Access denied error editing resource 'http://www.example.de/files/xmlsitemap/gss.xsl'. "
(translated from German)
I think, it is a problem with loading the style sheet because of a wrong URL, i.e. http instead of https.
Could it be connected to this?
Comment #3
avpadernoIsn't there an option to use for the base URL? I think it was added for cases like this.
Comment #4
haus commentedAn option for use with https, you mean? No, in settings for xmlsitemap is no such option.
Comment #5
avpadernoThe setting I am talking of exists in a different branch (you are reporting for version 5.x-1.7). I apologize for the confusion.
Comment #6
haus commentedThe problem has partly solved itself: After saving sitemap configuration as admin under https (instead of http) the sitemap.xml is now working as it should under http. It seems that if I save the configuration from an https-URL the module should ALWAYS save the http-URL instead of the https-URL - but it does not?!
Comment #7
avpadernoIf you visit the site using the https:// URL, the saved URLs will start with https:// as well. This apply also in the case you visit the site using http://example.com, but you want http://example.org to appear in the sitemap.
Comment #8
haus commentedAh, is I thought. So the solution is to save the configuration always being on the domain I want the sitemap for.
I just have to remember that.
Suggestion for future code: Wouldn't it be better to always base the sitemap at the http:// - address automatically?
Comment #9
dave reidYou can do exactly that by adjusting your $basE_url global variable in your site's settings.php file. The 6.x-2.x and 7.x-2.x include a UI options for this so you don't have to edit code.