Sitemap doesn't work if https is enabled

haus - November 9, 2009 - 12:11
Project:XML sitemap
Version:5.x-1.7
Component:xmlsitemap.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

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

#1

Dave Reid - November 9, 2009 - 20:49
Status:active» postponed (maintainer needs more info)

Looks 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.

#2

haus - November 9, 2009 - 22:38

Thanks 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?

#3

kiamlaluno - November 9, 2009 - 22:40

Isn't there an option to use for the base URL? I think it was added for cases like this.

#4

haus - November 9, 2009 - 23:12

An option for use with https, you mean? No, in settings for xmlsitemap is no such option.

#5

kiamlaluno - November 9, 2009 - 23:33

The setting I am talking of exists in a different branch (you are reporting for version 5.x-1.7). I apologize for the confusion.

#6

haus - November 10, 2009 - 09:57

The 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?!

#7

kiamlaluno - November 10, 2009 - 10:06

If 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.

#8

haus - November 11, 2009 - 23:09

Ah, 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?

 
 

Drupal is a registered trademark of Dries Buytaert.