I'd like to redirect any insecure request to https, AND make sure that the url always uses 'www'. This is what I have but doesn't seem to work. What am I missing?
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.com [NC]
RewriteCond %{HTTP_HOST} ^www.domain.com [NC]
RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301]
No comments:
Post a Comment