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: QueryString Help
Author
Message |
fvillena
Newbie


Joined: 25 April 2009
Posts: 9
Posted: 18 October 2011 at 11:18am

Hi,

I'm using the below rule which works for the most part but I was wondering what I need to do to modify it to carry over any existing query strings.

So that  en/page.aspx?id=1 would redirect to en/page.aspx?id=1&language=en

RewriteBase /
RewriteRule en/([^?]*)(?:\?(.*))? /$1\?language=en?2&$2: [I,L]
Back to Top
 
fvillena
Newbie


Joined: 25 April 2009
Posts: 9
Posted: 19 October 2011 at 3:19am

Apologies, this should be in the 3.0 Forum
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 19 October 2011 at 4:08am

Thanks for your remark.

It should be like this:

RewriteBase /
RewriteRule en/([^?]*)(?:\?(.*))? /$1\?language=en?2&$2: [NC,L,QSA]

__________________
Regards,
Anton
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