P. .htaccess

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