title: Godaddy URL redirect from HTTP to HTTPS
body: <p>I host my website on heroku and bought the domain from godaddy, here's how I set my DNS records</p>
  
  <p><strong>Records</strong></p>
  
  <p>A - @ - Forwaded - 600 secs</p>
  
  <p>CNAME - www - example.com.herokudns.com - 1 Hour</p>
  
  <p><strong>Forwarding</strong></p>
  
  <p>-- Domain --</p>
  
  <p>Redirect to <a href="https://www.example.com" rel="noreferrer">https://www.example.com</a></p>
  
  <p>-- Subdomain --</p>
  
  <p>example.com Redirect to <a href="https://www.example.com" rel="noreferrer">https://www.example.com</a></p>
  
  <p>www.example.com Redirect to <a href="https://www.example.com" rel="noreferrer">https://www.example.com</a></p>
  
  <p><strong>Expected Behaviour</strong></p>
  
  <p>When I enter <strong>example.com</strong> or <strong>www.example.com</strong>, it should redirect to <strong><a href="https://www.example.com" rel="noreferrer">https://www.example.com</a></strong></p>
  
  <p><strong>Result</strong></p>
  
  <p>Only <strong>example.com</strong> got redirected to <strong><a href="https://www.example.com" rel="noreferrer">https://www.example.com</a></strong>, <strong>www.example.com</strong> does not</p>
  
  <p>What went wrong with my configuration ?</p>