14. .htaccess

1RewriteEngine On
2
3RewriteCond %{HTTP:X-Forwarded-Proto} !https
4RewriteCond %{HTTPS} off
5RewriteCond %{HTTP:CF-Visitor} !{"scheme":"https"}
6RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
7
skip_previous skip_next