My site is set at non www. Im using cloudflare. But i have one page that has to be served http://
Is it possible to use a rule to exclude the one page in cloudflare? Then just set ssl on.
My homepage I cant get green lock due to having to use a non secure image. (the site is toplist sends good traffic) But i was still wanting to redirect to https homepage.
Quote:
Originally Posted by Paul&John
Yeah sometimes I do get that page isnt redirecting properly message too. I'm using two versions of htaccess.. The first works on one server the second on an other.. but in case you are on cloudflare then just force SSL at CF..
Version 1:
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.YOUR_DOMAIN_GOES_HERE.com/$1 [R,L]
Version 2:
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
(both force the user to www. version of the site)
|