IAmDaze
Junior Member
- Sep 2, 2017
- 162
- 163
I am using cloudflare with a static page website. I am using htaccess redirect to move all traffic to https but this results in redirect loop. How to solve this?
My htaccess:
My htaccess:
Code:
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301]