Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: redirect all ####.html pages to a new URL Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
goldmail
Newbie
Newbie


Joined: 19 August 2009
Online Status: Offline
Posts: 22
Posted: 04 February 2010 at 6:28pm | IP Logged Quote goldmail

I am running version 2 on Windows 2003 with IIS 6.

I would like to redirect all requests to http://www.goldmail.com/partner/#####.html to http://share.goldmail.com/?pid=#####

The ##### should always be a 4 or 5 digit number.  Can someone help me write the conditions?


Back to Top View goldmail's Profile Search for other posts by goldmail
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10483
Posted: 05 February 2010 at 2:51am | IP Logged Quote Anton

The redirection rule will be:

[ISAPI_Rewrite]
RewriteCond Host: www\.goldmail\.com
RewriteRule /partner/(\d{4,5})\.html http\://share.goldmail.com/\?pid=$1 [I,RP]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
goldmail
Newbie
Newbie


Joined: 19 August 2009
Online Status: Offline
Posts: 22
Posted: 05 February 2010 at 11:35am | IP Logged Quote goldmail

Works like a charm.  You guys are the best
Back to Top View goldmail's Profile Search for other posts by goldmail
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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