Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 18507 invoked from network); 15 Apr 2009 23:52:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Apr 2009 23:52:25 -0000 Received: (qmail 33406 invoked by uid 500); 15 Apr 2009 23:52:21 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 33374 invoked by uid 500); 15 Apr 2009 23:52:21 -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 33365 invoked by uid 99); 15 Apr 2009 23:52:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2009 23:52:21 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mearns.b@gmail.com designates 209.85.132.243 as permitted sender) Received: from [209.85.132.243] (HELO an-out-0708.google.com) (209.85.132.243) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2009 23:52:12 +0000 Received: by an-out-0708.google.com with SMTP id c38so118398ana.39 for ; Wed, 15 Apr 2009 16:51:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=l4CVg2fejsuRWw1wKurPOOk8CoqzpHS7dtFCObOFrO0=; b=v70TaQz8LrDRUJzc6vDNeI3gUN1nU6B0i5WSRyrOCKaxuwIO7SqWQgtCam5iFLjdu/ dBQViKXUqZME5Tbc5NR+FVcqhW70yZx4s2i7fSJgy051aTBcv0J8eEOO5hbJEVGo7ko2 9OYlMHvgRmKofiOVDKb8mC/ME4lpq05IaptiY= 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=EzdNtg/vi5GjUJtqFp9sebsG/BD1oNW5VrHNLVrjcHajid4VPLIsI2KnR/ARaakvJH BMHnvZYTwb6fs631a267fbqRmV7WDkpFw9gqC4A1Q22A13Oo+W4US5v5Y59PIci/OYL3 Yzb4Fyv/N8BSyOFw3nWGjWAWH9JaMm0DiJp9E= MIME-Version: 1.0 Received: by 10.100.164.12 with SMTP id m12mr1229732ane.144.1239839511364; Wed, 15 Apr 2009 16:51:51 -0700 (PDT) In-Reply-To: References: <1872.98157.qm@web8801.mail.in.yahoo.com> Date: Wed, 15 Apr 2009 19:51:51 -0400 Message-ID: <4df3a1330904151651s24f0fd8fob0839721f4f0f684@mail.gmail.com> From: Brian Mearns To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Help needed for rewrite rule On Wed, Apr 15, 2009 at 7:41 PM, Igor Cicimov wrote: > RewriteEngine On > RewriteRule ^/(.*) /spaces/$1 > > Igor Actually, since it was specified as needing to redirect, you need the [R] flag at the end, but that will end up redirecting forever. You need to either set up the rewrite to not match when the requested URL starts with /spaces/ (which would probably be a little tricky), or just use a RewriteCond to apply when it *doesnt* match ^/spaces/.* . Even if you don't actually want to redirect, but just do an internal rewrite, you should probably still include this precaution (in fact, you might need it, I'm not sure) in case someone actually tries to access http://website.com/spaces/something. -Brian -- Feel free to contact me using PGP Encryption: Key Id: 0x3AA70848 Available from: http://keys.gnupg.net --------------------------------------------------------------------- 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