Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 62372 invoked from network); 21 Dec 2010 17:32:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Dec 2010 17:32:05 -0000 Received: (qmail 1519 invoked by uid 500); 21 Dec 2010 17:32:02 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 1475 invoked by uid 500); 21 Dec 2010 17:32:02 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 1467 invoked by uid 99); 21 Dec 2010 17:32:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Dec 2010 17:32:02 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of covener@gmail.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-ww0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Dec 2010 17:31:57 +0000 Received: by wwi17 with SMTP id 17so4087260wwi.12 for ; Tue, 21 Dec 2010 09:31:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=CRAA5qFhABfVxfpDaLxSGtY5sQUumxu1PAEnQosOYas=; b=WigspaNeOwCQ8HVedol3+3FihwEFll8TAv5b5tELHm7jmNJktwKMAmp7XQoJrFJjCH JQZfjcJthpXTFMg9gVwCvwnv9C31a0UzaHkQBPvU8zCGTSuod9eXHm+CixD6ePmVTujV 3fGF73wbqQPORk9iQieXGaAQH7beNZpOtyNRw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=t9GuzClFu79bNKvI6RxfBXKAZbCuSL6Pcqlt4jubkjt8OhxllgR6uWr9N9gT+dGZGD P+Ldwkl5h2qHU/hDacQ7wl1a0sJ0ll4jdDhGkwrDjRbylmPnfk/x5awZVT5ZLC0Lgcaz B3GY0MBsYM8/sAt2T5oiSgbdXKY/uoVZ+Jh6o= MIME-Version: 1.0 Received: by 10.216.171.68 with SMTP id q46mr9052423wel.98.1292952695562; Tue, 21 Dec 2010 09:31:35 -0800 (PST) Received: by 10.216.70.132 with HTTP; Tue, 21 Dec 2010 09:31:35 -0800 (PST) In-Reply-To: References: Date: Tue, 21 Dec 2010 12:31:35 -0500 Message-ID: From: Eric Covener To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [users@httpd] RewriteCond how to set variable > 1)=A0=A0=A0=A0=A0 RewriteCond %{QUERY_STRING} !XSL=3DNONE [NC] > > 2)=A0=A0=A0=A0=A0 RewriteCond %{QUERY_STRING} calId=3D([0-9]+) [NC] > > 3)=A0=A0=A0=A0=A0 RewriteCond %{QUERY_STRING} skinId=3D([0-9]+) [NC] > > 4)=A0=A0=A0=A0=A0 RewriteRule ^/calendar > http://test.webservices.illinois.edu/calendar/list/%1?skinId=3D%2=A0=A0= =A0=A0=A0 [L] some other options to try: If you know the order, you can capture them all at once. RewriteCond %{QUERY_STRING} callId=3D(\d+).*skinId=3D(\d+) or if you only have two vars but don't know the order: RewriteCond %{QUERY_STRING} callId=3D(\d+).*skinId=3D(\d+) [OR] RewriteCond %{QUERY_STRING} skinId=3D(\d+).*callId=3D(\d+) Otherwise, you can use and re-capture them to pass them along assuming you don't expect a comma in your query string: RewriteCond %{QUERY_STRING} calId=3D([0-9]+) [NC] RewriteCond %{QUERY_STRING},%1 skinId=3D([0-9]+).*,(\d+) [NC]> --=20 Eric Covener covener@gmail.com --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org