I have a bit of problem here while creating .htaccess file for proper redirection. I need to redirect all requests to https with www except subdomains.
This is the scenario:
http://example.com-> https://www.example.com
https://example.com-> https://www.example.com
http://www.example.com-> https://www.example.com
http://subdomain.example.com-> http://subdomain.example.com[unchanged]
or
http://subdomain.example.com-> https://www.example.com/sites/subdomain
Any help is highly appreciated.