I have website as ec2 on aws and loadbalancer that is working only on http://domainname.com
but is not working with( www) so not working on both http:// www.domainname.com
and https://www.domainname.com, so I am thinking to make redirection from https://www.domainname.com
and from http://www.domainname.com to http://domainanme.com through apache config ht access or Aws loadbalancer.
waiting for your kind advice