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

dave reid’s picture

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.

haus’s picture

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?

avpaderno’s picture

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

haus’s picture

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

avpaderno’s picture

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.

haus’s picture

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

avpaderno’s picture

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.

haus’s picture

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?

dave reid’s picture

Status: Postponed (maintainer needs more info) » Fixed

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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.