You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wag...@googlegroups.com
Hi Lucas,
I'd suggest removing the port 80 site record - it's not necessary. If Wagtail can't find a site that matches the current request by hostname and port, it will fall back on one that matches by hostname only - so it'll still match the port 443 record, even if the request is arriving on port 80.
This way, Wagtail will always use https:// when generating a full URL for a page. (If you want it to show up as http:// instead when accessing the sitemap over HTTP, that's not possible: a page must always have one canonical full URL, it can't change in different contexts.)
Cheers,
- Matt
Lucas Simon Rodrigues Magalhaes
unread,
Mar 10, 2017, 7:58:52 AM3/10/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Wagtail support
Thanks Matthew,
Another question, I have a cname www in DNS. So, I should create another record with www in hostname field?
Matthew Westcott
unread,
Mar 10, 2017, 8:32:33 AM3/10/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wag...@googlegroups.com
That'll give you a similar problem - you won't be able to control whether the www or non-www version is used as the full URL. A better idea would be to set up a redirect from www to non-www (or vice versa) at the web server level - I believe that will also help with SEO, as it means you're not serving the same content from two different places.