Hello all,
Wondered if you could help with this one.
The following htaccess rules force all requests to a maintenance page except when accessed from a specific IP (address removed).
I'm using this with Wordpress.
This seems to works fine for all front end pages, however for some reason all requests for wp-admin and root or domain without a URI are still getting redirected which means that the IP address excluded is unable to see the root or home page and instead receives the maintenance page.
RewriteEngine On
RewriteCond %{REMOTE_ADDR} !^xx\.xxx\.xxx\.xxx$
RewriteCond %{REQUEST_URI} !^maintenance$ [NC]
RewriteCond %{REQUEST_URI} !^\.(jpe?g?|png|gif)$ [NC]
RewriteRule ^(.*)$ maintenance [R=302,L]
Can anyone advise how I stop the root / requests without a URI / home page from being redirected ?
Have spent quite a few hours on this and I just can't see it. Hope someone can set me on the right track.
Thanks,
Nic