Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: Accessing the Query String Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
smudge
Newbie
Newbie


Joined: 16 October 2007
Online Status: Offline
Posts: 5
Posted: 09 October 2008 at 9:22am | IP Logged Quote smudge

Please could you show me how to convert

www.mysite.com/products/PRODUCTNAME/?id=PARTNERNAME/

to

www.mysite.com/product.aspx?ref=PRODUCTNAME&id=PARTNERNAME

I am trying to do this with a RewriteRule and getting totally lost how I can access the query string component and use it as part of the new url.

Many thanks.
Back to Top View smudge's Profile Search for other posts by smudge
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4837
Posted: 10 October 2008 at 3:19am | IP Logged Quote Anton

Please try the following rule:

RewriteBase /
RewriteRule ^products/([^/]+)/$ product.aspx?ref=$1 [NC,QSA,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 can vote in polls in this forum