Sundige HTTPS-i - CSS-trikid

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

Kui teie serveri ees on puhverserver, mis täidab TLS-i lõpetamist:

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