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: encode target url Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
querystrong
Newbie
Newbie


Joined: 07 December 2006
Online Status: Offline
Posts: 3
Posted: 07 December 2006 at 9:40am | IP Logged Quote querystrong

Hello

May I put in the RewriteRule FormatString, a string url value like that :

RewriteRule (^/test.asp.*) /redirection.asp\?url=$1

url typed : http://.../test.asp?A=1&B=2&C=4

I've tried but the querystring is imcomplete, it did not contain the B and C values

Any idea ?

Back to Top View querystrong's Profile Search for other posts by querystrong
 
querystrong
Newbie
Newbie


Joined: 07 December 2006
Online Status: Offline
Posts: 3
Posted: 08 December 2006 at 3:35am | IP Logged Quote querystrong

I finally found a solution :

RewriteRule (^/test.asp)(?:\?:(.*)) /redirection.asp\?page=$1&$2

The returned querystring is as the url querystring
Back to Top View querystrong's Profile Search for other posts by querystrong
 
querystrong
Newbie
Newbie


Joined: 07 December 2006
Online Status: Offline
Posts: 3
Posted: 08 December 2006 at 3:41am | IP Logged Quote querystrong

NOT (?:\?:(.*))
CORRECTION:
(?:\?:(.*)|.*)
Back to Top View querystrong's Profile Search for other posts by querystrong
 

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