Ad

How To Change Protocol To Https On Wagtail Sitemaps?

- 1 answer

I have a django sitemap and wagtail sitemap for my site.

The django sitemap is using https by simply setting the protocol variable in the class, but I can't figure out a way to do this for the wagtail sitemap without overriding many internal methods.

Is there a simple way to use https for my wagtail sitemaps?

Ad

Answer

In the Wagtail admin, under Settings -> Sites, change the port number of your site to 443.

Ad
source: stackoverflow.com
Ad