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
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: QueryString Help Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
fvillena
Newbie
Newbie


Joined: 25 April 2009
Online Status: Offline
Posts: 9
Posted: 18 October 2011 at 11:18am | IP Logged Quote fvillena

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 View fvillena's Profile Search for other posts by fvillena
 
fvillena
Newbie
Newbie


Joined: 25 April 2009
Online Status: Offline
Posts: 9
Posted: 19 October 2011 at 3:19am | IP Logged Quote fvillena

Apologies, this should be in the 3.0 Forum
Back to Top View fvillena's Profile Search for other posts by fvillena
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 19 October 2011 at 4:08am | IP Logged Quote Anton

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 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 cannot vote in polls in this forum