| Posted: 19 April 2011 at 4:01pm | IP Logged
|
|
|
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
|