RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301]
This rule only fails
http://domain.com
doesn't convert into
https://www.domain.com
let me know why the redirection not working.
Thanks.
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301]
This rule only fails
http://domain.com
doesn't convert into
https://www.domain.com
let me know why the redirection not working.
Thanks.
Last edited by a moderator: