Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: Need rewrite rule help Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jasolution
Newbie
Newbie


Joined: 27 March 2004
Location: United States
Online Status: Offline
Posts: 13
Posted: 03 July 2008 at 9:11am | IP Logged Quote jasolution

I'm using v2 and need help with a rule that will rewrite:

page.asp_Q_1_E_106_A_2_E_126

to

page.asp?1=106&2=126

Where:

_Q_ is ?
_E_ is =
_A_ is &

Thanks much!
Back to Top View jasolution's Profile Search for other posts by jasolution
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7460
Posted: 03 July 2008 at 5:48pm | IP Logged Quote Lexey

RewriteRule ([^?]*\.asp)_Q_(.*) $1\?$2 [I]
RewriteRule ([^?]*\.asp\?.*)_E_(.*) $1=$2 [NS,I]
RewriteRule ([^?]*\.asp\?.*)_A_(.*) $1&$2 [NS,I]


Edited by Lexey - 03 July 2008 at 5:49pm
Back to Top View Lexey's Profile Search for other posts by Lexey
 
jasolution
Newbie
Newbie


Joined: 27 March 2004
Location: United States
Online Status: Offline
Posts: 13
Posted: 04 July 2008 at 6:38am | IP Logged Quote jasolution

Perfect, Lexey!

I had been trying to do it all with one rule, which I guess explains why I wasn't having success.

Thank you very much.

Jason
Back to Top View jasolution's Profile Search for other posts by jasolution
 

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