Vynútiť HTTPS - Triky CSS

Anonim
RewriteEngine on RewriteCond %(HTTPS) !on RewriteRule (.*) https://%(HTTP_HOST)%(REQUEST_URI)

Ak máte pred serverom proxy, ktoré vykonáva ukončenie protokolu TLS:

RewriteCond %(HTTP:X-Forwarded-Proto) !https RewriteRule (.*) https://%(HTTP_HOST)%(REQUEST_URI)