I did find a work around by doing the follow: RewriteCond %{QUERY_STRING} !XSL=NONE [NC] RewriteCond %{QUERY_STRING} skinId=([0-9]+)(.*)calId=([0-9]) [NC] RewriteRule ^/calendar http://test.webservices.illinois.edu/calendar/list/%3?skinId=%1 [L,R=301] RewriteCond %{QUERY_STRING} !XSL=NONE [NC] RewriteCond %{QUERY_STRING} calId=([0-9]+)(.*)skinId=([0-9]) [NC] RewriteRule ^/calendar http://test.webservices.illinois.edu/calendar/list/%1?skinId=%3 [L,R=301] Thanks, Lance Campbell Software Architect/DBA/Project Manager Web Services at Public Affairs 217-333-0382 -----Original Message----- From: Andrew Schulman [mailto:andrex@xxxxxxxxxxxxxxxxx] Sent: Tuesday, December 21, 2010 12:13 PM To: users@xxxxxxxxxxxxxxxx Subject: Re: RewriteCond how to set variable > My email client displayed what you wanted me to insert incorrectly. I > put the code in correctly but it still does not work. I added R=301 to > the end so that it would redirect so I could check the apache logs. Good debugging trick. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx