title: AWS application load balancer - redirect non-www to https://www
body: <p>I have deployed my application on <strong>EC2 - ubuntu 18.04 (Apache server)</strong>. I registered this EC2 with an <strong>Application Load Balancer</strong>, I want to redirect <strong>non-www</strong> traffic to <a href="https://www.mydomain.co" rel="nofollow noreferrer">https://www.mydomain.co</a></p>
  <p>When I type <strong><a href="http://www.mydomain.co" rel="nofollow noreferrer">www.mydomain.co</a></strong> in browser, it redirects to <a href="https://www.mydomain.co" rel="nofollow noreferrer">https://www.mydomain.co</a>  which is working fine.
  But when I type without www that is only <strong>mydomain.co</strong> then it shows &quot;This site can’t be reached&quot;.</p>
  <p>Following are the rules I defined in ALB -</p>
  <p><a href="https://i.stack.imgur.com/A3EpN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A3EpN.png" alt="enter image description here" /></a></p>
  <p>Can anyone help please?</p>