On Sunday, February 6, 2022 at 9:12:38 PM UTC-5 Mike Dewhirst wrote:

> There seems to be a multitude of ways to redirect from http to https.
> Any pointers to the absolutely correct way?
>
>
How about something like this?

<VirtualHost *:80> 
  ServerName example.com
  ServerAlias www.example.com
  Redirect permanent / https://example.com/
</VirtualHost>
<VirtualHost *:443>
  ...
</VirtualHost>

 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c8c8177d-49c0-45f7-b382-31855ccb6b0an%40googlegroups.com.

Reply via email to