htaccess redirect loop

Posted by Web Developer on Server Fault See other posts from Server Fault or by Web Developer
Published on 2012-03-18T17:28:01Z Indexed on 2012/03/18 18:01 UTC
Read the original article Hit count: 206

Filed under:
|

I am having issue in the last line of the below code which is causing the redirect loop (at least that's what i think so)

RewriteEngine On
RewriteBase /jgel/
RewriteCond %{REMOTE_ADDR} !^172\.172\.121\.142
RewriteCond %{REQUEST_URI} !maintainance\.php
RewriteCond %{REQUEST_URI} !resources/(.*)$ [nc]
RewriteRule ^(.*)$ maintenance.php [R=307,L]

I have tried this and this too doesn't work

RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_ADDR} !^172\.172\.121\.142
RewriteCond %{REQUEST_URI} !maintainance\.php
RewriteCond %{REQUEST_URI} !resources/(.*)$ [nc]
RewriteRule ^(.*)$ /jgel/maintenance.php [R=307,L]

© Server Fault or respective owner

Related posts about apache2

Related posts about .htaccess