Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Redirect to new page with refering URL Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mgisonno
Newbie
Newbie


Joined: 12 June 2006
Location: United States
Online Status: Offline
Posts: 3
Posted: 08 March 2010 at 6:29pm | IP Logged Quote mgisonno

Hey everyone,

So I've searched high and low and can't figure this out...  As well, I don't see a search option for this forum.

Anyways, I have an old page that needs to be redirected to a new page, this is simple.  The part I can't figure out is getting the URL of the referring domain.

So that when a user lands on the page: http://www.mysite.com/index.aspx

They click a link to the old page: http://www.mysite.com/evaluate_page.aspx

They are redirected to: http://www.mysite.com/customer-feedback.aspx?refUrl=http://www.mysite.com/index.aspx

All I need is to grab the referring URL and use it in my RewriteRule, but can't figure out how.  Please help

Back to Top View mgisonno's Profile Search for other posts by mgisonno Visit mgisonno's Homepage
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10487
Posted: 09 March 2010 at 5:45am | IP Logged Quote Anton

Please try to use the following rule:

[ISAPI_Rewrite]
RewriteCond Referer: (.*)
RewriteRule /evaluate_page\.aspx http://www.mysite.com/customer-feedback.aspx\?refUrl=$1 [I,RP]

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

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