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 if incoming is IP address?
Author
Message |
firstandgoal4
Newbie


Joined: 30 September 2010
Location: United States
Posts: 4
Posted: 30 September 2010 at 10:41am

Will this tool work to redirect to a url if the website is accessed via IP?  Example....user enters 123.45.67.89 to access the website.  If that happens, I want to redirect to www.xyz.com.
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 01 October 2010 at 1:50am

Yes, please try the following:

[ISAPI_Rewrite]
RewriteCond Host: 123\.45\.67\.89
RewriteRule (.*) http\://www.xyz.com$1 [RP]

__________________
Regards,
Anton
Back to Top
 

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