title: How can I work around "Too many redirects error" when trying to direct all web traffic to https with ec2 apache2 ubuntu?
body: <p>Here is my config file</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerAdmin webmaster@localhost
      DocumentRoot /var/www/html
      Redirect permanent / https://www.mywebsite.co/
      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined
  &lt;/VirtualHost&gt;
  
  # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
  </code></pre>
  
  <p>And when I type in the browser mywebsite.co it successfully redirects me <a href="https://mywebsite.co" rel="noreferrer">https://mywebsite.co</a> however content does NOT render on the page because of this error (by Google Chrome)</p>
  
  <pre><code>Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.
  </code></pre>
  
  <p>I have an EC2 instance using port 80 to handle http requests and a load balancer handling https requests. I am not sure what to do and none of the solutions I've found online are working.</p>
  
  <p><a href="https://i.stack.imgur.com/mETR3.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/mETR3.jpg" alt="enter image description here"></a></p>