Why is the following code running into redirect loop
RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_ADDR} !^12\.16\.15\.17
RewriteCond %{REQUEST_URI} !^/maintenance\.php$
RewriteCond %{REQUEST_URI} !^/resources/(.*)$
RewriteRule ^(.*)$ /jgel/maintenance.php [R=307,L]
Resources is a folder
because
/jgel/maintenance.phpsucceeds on Cond1, Cond2, Cond3 and the rule regexp.Changing Cond2 to
would then cause it to fail on Cond2 and stop the rewrite loop, as would