kingberrill
2/11/2017 - 2:31 PM

rewrite condition for domain and https

rewrite condition for domain and https

############################################
## Steve Berrill - dedirect old url to new https url only for domain.com
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.com$ [NC]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

############################################