Tag: https
-
proxying websockets via nginx and https
-
.htaccess redirect from http to https and from non-www to www redirect – Make site permanently SSL secured
put this in your htaccess file:
-
Forcing website to https and www using htaccess on apache servers
To first force HTTPS, you must check the correct environment variable %{HTTPS} off, but your rule above then prepends the www. Since you have a second rule to enforce www., don’t use it in the first rule.