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: Can’t get v2 Lite to work
Author
Message |
firstandgoal4
Newbie


Joined: 30 September 2010
Location: United States
Posts: 4
Posted: 30 September 2010 at 7:38pm

Windows 2003, IIS6

Auto Installed version 2 Lite

Entered this in the httpd file to test: RewriteRule .? - [F]

I receive: The requested resource could not be found. 

I am trying to redirect to www.xyz.com if the incoming call comes from ip addr 216.17.69.70.  Here is my rule:

RewriteRule (.+)216.17.69.70(.+) $1www.xyz.com$2 [I,R]

What am I doing wrong?

Back to Top
 
firstandgoal4
Newbie


Joined: 30 September 2010
Location: United States
Posts: 4
Posted: 30 September 2010 at 8:09pm

This rule does work:  RewriteRule .*index.* /checkout1.asp
Back to Top
 
firstandgoal4
Newbie


Joined: 30 September 2010
Location: United States
Posts: 4
Posted: 30 September 2010 at 9:43pm

I believe I got it but would like any feedback concerning if I did it correctly or if there is a better way:

RewriteCond Host: 216\.17\.69\.70
RewriteRule (.*) http\://www.xyz.com$1 [RP]

Back to Top
 
Anton
Admin Group


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

Yes, the rules in the last post are absolutely correct.

__________________
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