This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Helicon Ape
 Helicon Tech : Helicon Ape
Subject Topic: multiple query strings Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
balance
Newbie
Newbie


Joined: 17 December 2010
Online Status: Offline
Posts: 11
Posted: 19 April 2011 at 4:01pm | IP Logged Quote balance

I have a URL like this, http://acme.com/jdoe?CID=dmSSID:561342

and I need to process "jdoe" and the "CID" query strings separately. I can parse "jdoe" with this:

RewriteCond %{HTTP_HOST} ^acme.com$ [NC]
RewriteRule ^(.+)$ http://www.acme2.com/?x1=$1&CID=$2

but I'm not sure how to include the "CID" URL token to my rule. Any thoughts?

I tried this, but it doesn't work:

RewriteCond %{HTTP_HOST} ^acme.com$ [NC]
RewriteCond %{QUERY_STRING} ^CID=(.*)$
RewriteRule ^(.+)$ http://www.acme2.com/?x1=$1&CID=$2


The final URL should look like this:
http://www.acme2.com/?x1=jdoe&CID=dmSSID:561342

Thanks



Edited by balance - 19 April 2011 at 4:11pm
Back to Top View balance's Profile Search for other posts by balance
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -149
Posted: 20 April 2011 at 4:51pm | IP Logged Quote Guests

Your issue has been forwarded to Premium Support Service according to your order. All the following correspondence will be provided via email

Regards
Andrew
Back to Top View Guests's Profile Search for other posts by Guests
 

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