title: Https causing too many redirects?
body: <p>I have a simple code in place for my php file to redirect to https if it's not present and I keep getting a too many redirects issue.</p>
  
  <pre><code>if(strtolower($_SERVER['HTTPS']) != 'on') {
  redirect('https://domain.com/register.php');
  }
  </code></pre>
  
  <p>Is there something I can do to fix the issue?</p>
  
  <p>Thank you.</p>