title: The page isn't redirecting properly - HTTPS HTACCESS rewrite error
body: <p>I have this following htaccess rewrite rules</p>
  
  <p>The rule1 is causing the infinite loop error. I am trying to redirect all the request to HTTPS but it's not working.</p>
  
  <p>Because of the rule1 the rule2 is also blocked. When I comment on rule1 everything is fine.</p>
  
  <p>If I change the order also this infinite loop error occurs.</p>
  
  <p>Please help me how to resolve this error</p>
  
  <pre><code>RewriteEngine On
  RewriteBase /
  
  #Rule 1: Rewrite all the requests to HTTPS
  RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
  
  //Rule 2: redirect to the account closed setup
  RewriteRule ^(?:abcd)/A-Report/(.+)$ /closed/$1 [NC,L]
  </code></pre>
  
  <p>Thanks in advance.</p>