I've been trying to get this up in my .htaccess file for 2days now, but i can't get it to work properly.
I'm working at a company and they need this specific redirects to their website and subdomain because their joomla setup requires it.
all scenarios:
main domain
http://www.my-main.be -> https://www.my-main.be
http://my-main.be -> https://www.my-main.be
https://www.my-main.be -> https://www.my-main.be
https://my-main.be -> https://www.my-main.be
subdomain
http://www.mysub.my-main.be -> http://mysub.my-main.be
http://mysub.my-main.be -> http://mysub.my-main.be
https://www.mysub.my-main.be -> http://mysub.my-main.be
https://mysub.my-main.be -> http://mysub.my-main.be
note:
- mysub may be fixed, but is prefered dynamic so all the subdomains go to http://.
- It is important to have www in the main domain
- It is important to have www left out of the subdomain
Is this possible?
Leave a comment if i did not explain this well enough and i will clarify it more.
Thanks in advance