Dear All,

I am attempting to force all requests to any url at www.mydomain.com to be
rewritten to http://www.mydomain.com/maintenance.php except for requests
made from specific IP addresses.

I thought that if I added the following that this would work as intended:

RewriteEngine   on
RewriteCond %{REMOTE_ADDR} ^!192\.168\.244\.247$ [OR]
RewriteCond %{REMOTE_ADDR} ^!192\.168\.245\.245$
RewriteRule ^/.*$      http://www.mydomain.com/maintenance.php [R]

I think that I may be barking up the wrong tree - any pointers would be
gratefully received.

Many thanks in advance

Simon. 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to