I have this following htaccess rewrite rules
The rule1 is causing the infinite loop error. I am trying to redirect all the request to HTTPS but it's not working.
Because of the rule1 the rule2 is also blocked. When I comment on rule1 everything is fine.
If I change the order also this infinite loop error occurs.
Please help me how to resolve this error
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]
Thanks in advance.