Hi all,
Have spent 3 days trying to get all url redirects to HTTPS to work but no matter what i try i cant get all urls to redirect to https://www.domain.com have looked high and low and tried 100 different ways without luck. Any help would be great!
http://www.domain.com to https://www.domain.com (not working) redirects to www.domain.com but not to https
http://domain.com to https://www.domain.com (Not Working) redirects to domian.com but not back to http
domain.com to https://www.domain.com (Working)
www.domain.com to https://www.domain.com (working)
I have tried both of the below with the same issues not all redirect
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ https://www.domain.com/$1 [R=301,L]
and
RewriteCond %{HTTPS} !on
RewriteRule ^(.*)$ https://www.domain.com%{REQUEST_URI} [R,L]
Have spent 3 days trying to get all url redirects to HTTPS to work but no matter what i try i cant get all urls to redirect to https://www.domain.com have looked high and low and tried 100 different ways without luck. Any help would be great!
http://www.domain.com to https://www.domain.com (not working) redirects to www.domain.com but not to https
http://domain.com to https://www.domain.com (Not Working) redirects to domian.com but not back to http
domain.com to https://www.domain.com (Working)
www.domain.com to https://www.domain.com (working)
I have tried both of the below with the same issues not all redirect
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ https://www.domain.com/$1 [R=301,L]
and
RewriteCond %{HTTPS} !on
RewriteRule ^(.*)$ https://www.domain.com%{REQUEST_URI} [R,L]