My SSL certificate was issued for mydomain.com, not www.mydomain.com.
The .com.au is successfully parked on top of the .com, and works as is.
The rule I've written to redirect all domains to SSL is as follows:
- Code: Select all
RewriteCond %{HTTP_HOST} !^mydomain.com [NC]
RewriteRule ^(.*)$ https://mydomain.com/$1 [R=301]
[other rules follow]
How it works:
http://www.mydomain.com YES
http://mydomain.com NO
http://www.mydomain.com.au YES
http://mydomain.com.au NO
Can someone help me rewrite this rule to redirect all of the above to https://mydomain.com?