This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: encode target url (Topic Closed Topic Closed)
Author
Message |
querystrong
Newbie


Joined: 07 December 2006
Posts: 3
Posted: 07 December 2006 at 9:40am  

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
 
querystrong
Newbie


Joined: 07 December 2006
Posts: 3
Posted: 08 December 2006 at 3:35am  

I finally found a solution :

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

The returned querystring is as the url querystring
Back to Top
 
querystrong
Newbie


Joined: 07 December 2006
Posts: 3
Posted: 08 December 2006 at 3:41am  

NOT (?:\?:(.*))
CORRECTION:
(?:\?:(.*)|.*)
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
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