Originally I thought this would be a Wordpress question but now I want to approach this from a different perspective.
I am running a LAMP Stack in AWS using Amazon Linux. I have a company website that is a Wordpress site.
I have six domains that I want to (1) force from HTTP to HTTPS and (2) forward to "https://CompanysSite.com
The other domains are variants, so, for example I want "http://CompanySite-inc.com
" to forward to "https://CompanySite.com
". And it's totally okay
to have the domain name be changed to "https://CompanysSite.com
" from whatever domain it came in on.
Is there a way to do this globally at the Apache level, perhaps using Mod-ReWrite?
I just don't know enough about Apache to add that to the script in order to have all traffic sent to "https://CompanySite.com
Thanks for your help!