B bbrowne Chevereto Member Feb 5, 2015 #1 Hey guys. Running the latest version of Chevereto, and trying to force SSL for all pages via .htaccess, however it is forcing a loop. Any idea of what code should be used in .htaccess? I have searched the forums, but theythreads all seem to be pretty old. Cheers
Hey guys. Running the latest version of Chevereto, and trying to force SSL for all pages via .htaccess, however it is forcing a loop. Any idea of what code should be used in .htaccess? I have searched the forums, but theythreads all seem to be pretty old. Cheers
Rodolfo ⭐ Chevereto Godlike Chevereto Staff Administrator Feb 5, 2015 #2 You have several ways to do it. The most clean way is: Code: RewriteCond %{HTTPS} !=on [OR] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Hope it works.
You have several ways to do it. The most clean way is: Code: RewriteCond %{HTTPS} !=on [OR] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Hope it works.
B bbrowne Chevereto Member Feb 5, 2015 #3 Close this thread. Figured it out. Needed to use custom cloudflare htaccess code. RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"' RewriteRule ^(.*)$ https://www.domain.com/$1 [L]
Close this thread. Figured it out. Needed to use custom cloudflare htaccess code. RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"' RewriteRule ^(.*)$ https://www.domain.com/$1 [L]