I want to redirect my website to https://subdomain.domain.com
in my .htaccess file.
Redirects:
http://subdomain.domain.com => https://subdomain.domain.com
http://www.subdomain.domain.com => https://subdomain.domain.com
https://www.subdomain.domain.com => https://subdomain.domain.com
https://subdomain.domain.com => no redirects
2
Answers
This should do it…
First rule redirect all www to https://subdomain.domain.com, second all http to https://subdomain.domain.com