This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions
 Helicon Tech : Common Questions
Subject Topic: Redirect with Parameters in URL Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
pdench
Newbie
Newbie


Joined: 29 March 2010
Online Status: Offline
Posts: 1
Posted: 29 March 2010 at 12:41pm | IP Logged Quote pdench

Hi,

I am using ISAPI Rewrite version 3.1 and I need to redirect a page that contains a parameter to one that doesn't contain a parameter. I'm trying to redirect page LoanProducts.aspx?tab=Parents  to page Parents.aspx. My command in the rewrite is

RewriteRule LoanProducts.aspx?tab=Parents Parents.aspx [I,RP]

 

When I run this, the URL that it goes to is

Parents.aspx?tab=Parents&tab=Parents

 

How do I get this to remove the parameters? Thanks for your help!

Paul

 

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


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 30 March 2010 at 2:31am | IP Logged Quote Anton

Your rule should be:

RewriteBase /
RewriteCond %{QUERY_STRING} ^tab=Parents$ [NC]
RewriteRule ^LoanProducts\.aspx$ Parents.aspx? [NC,R=301,L]

__________________
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