Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 34584 invoked from network); 21 Oct 2005 18:26:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Oct 2005 18:26:26 -0000 Received: (qmail 26943 invoked by uid 500); 21 Oct 2005 18:26:15 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 26934 invoked by uid 500); 21 Oct 2005 18:26:15 -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 26923 invoked by uid 99); 21 Oct 2005 18:26:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Oct 2005 11:26:15 -0700 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jslive@gmail.com designates 72.14.204.204 as permitted sender) Received: from [72.14.204.204] (HELO qproxy.gmail.com) (72.14.204.204) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Oct 2005 11:26:13 -0700 Received: by qproxy.gmail.com with SMTP id u24so115860qbh for ; Fri, 21 Oct 2005 11:25:52 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TOWa0taRL2R7uce3kg9w2xQ6Y/dbX6T15I44WDZmRljk7xrkk6RZ/mbvzYU5m79dJ+lbK6aRWB1nS14E3PdnoP524PxnRoGR/0a2Z7gtUTGPpm/vhhBRAAfErKMzBjJC9tPpcuruREY4TXwUCb4e0osGhmmERExJHwN0T0b2CBw= Received: by 10.65.44.13 with SMTP id w13mr2226726qbj; Fri, 21 Oct 2005 11:25:52 -0700 (PDT) Received: by 10.64.253.12 with HTTP; Fri, 21 Oct 2005 11:25:52 -0700 (PDT) Message-ID: Date: Fri, 21 Oct 2005 14:25:52 -0400 From: Joshua Slive To: users@httpd.apache.org In-Reply-To: <00a601c5d66a$f5bda0d0$39e1a8c0@HOLODECK> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <00a601c5d66a$f5bda0d0$39e1a8c0@HOLODECK> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Should be easy RewriteRule issue: mod_rewrite. X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 10/21/05, Andoni wrote: > Can you please help me with this RewriteRule. I am trying to all users of= my > website to type in: > > www.mysite.com/area1 > > and have it re-written to: > > www.mysite.com/servMainSite?inner=3Darea1 > > The slight complication is that /img, /css and /menu have to work as of > course does /servMainSite. At the moment I am getting an infinite loop wi= th > the following: > > # RewriteRule !^/(servMainSite.*|img.*|css.*|menu.*)/ > /servMainSite?inner=3D$1 [R,L] There are several ways to do this. Here's one: RewriteEngine On RewriteCond %{Request_URI} !^/img RewriteCond %{Request_URI} !^/css ... RewriteRule ^/(.*) ^/servMainSite?inner=3D$1 [QSA,L] Joshua. --------------------------------------------------------------------- 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