This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Redirect users to maintance page
Author
Message |
johnowl
Newbie


Joined: 06 August 2010
Location: Brazil
Posts: 2
Posted: 06 August 2010 at 2:09pm

I need to redirect all access to my server to a page in root called maintance.html except the access of my own IP.

How can i write this rule?

Thanks.



__________________
http://johnowl.com/
Back to Top Visit johnowl's Homepage
 
johnowl
Newbie


Joined: 06 August 2010
Location: Brazil
Posts: 2
Posted: 06 August 2010 at 2:18pm

I guess that i get it, supossing my IP is 999.99.99.9:

RewriteCond %REMOTE_ADDR (?!999\.99\.99\.9).*
RewriteRule .* /maintance.html [I,L]

It seems to work here.



__________________
http://johnowl.com/
Back to Top Visit johnowl's Homepage
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum