This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Redirect Urls
Author
Message |
Developer
Newbie


Joined: 04 October 2011
Posts: 3
Posted: 04 October 2011 at 1:28pm

Hello,

All the URLs(there are 55,000 of them) in an excel file need to be redirected to another server. How do I do this. Appreciate any help.

Thanks,

Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 05 October 2011 at 5:31am

Please, give the examples of your scenario and we'll provide you with a rule.

Regards
Andrew
Back to Top
 
Developer
Newbie


Joined: 04 October 2011
Posts: 3
Posted: 05 October 2011 at 10:25am

The examples of my scenario is below. First point of redirection needs to happen on http://www.somewebsite.com/name website. Then internally it needs to be redirected to http://someIPaddress/name.

P.S - I am using somewebsite and someIPaddress as an example here. So when a user enters his name it needs to be redirected to someIPaddress/name. I am trying to use the below rule in httpd.ini file. But it does not recognize the strings. The other thing is that there are about 55,000 urls that need to be redirected in the same way. This is something urgent that needs to be done and I am new to this. Please help. Thank you in advance. Below is the string I am using.

RewriteEngine on
RewriteBase /

RewriteCond %{HTTP:HOST} ^(?:www\.)?example\.com\name$ [NC]
RewriteRule ^ http://someIPAddress/name [NC,P,L]

Back to Top
 
Developer
Newbie


Joined: 04 October 2011
Posts: 3
Posted: 05 October 2011 at 10:59am

Any ideas? Please help.

Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 06 October 2011 at 4:18am

Understood.
The problem is that ISAPI_Rewrite 3 does not support .ini file, it uses httpd.conf instead.
Try using the ISAPI_Rewrite Manager to edit the config file with the following code:

Code:
RewriteEngine on
RewriteBase /

RewriteCond %{HTTP:HOST} ^(?:www\.)?example\.com$ [NC]
RewriteRule (.*) http://someIPAddress/$1 [NC,P,L]


Regards
Andrew
Back to Top
 

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

Printable version Printable version