Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CD476DDBE for ; Wed, 27 Jun 2012 09:27:53 +0000 (UTC) Received: (qmail 81033 invoked by uid 500); 27 Jun 2012 09:27:50 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 80999 invoked by uid 500); 27 Jun 2012 09:27:50 -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 80972 invoked by uid 99); 27 Jun 2012 09:27:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jun 2012 09:27:49 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [88.198.19.49] (HELO zimbra.infoservices.in) (88.198.19.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jun 2012 09:27:43 +0000 Received: from localhost (localhost [127.0.0.1]) by zimbra.infoservices.in (Postfix) with ESMTP id 7AF7BDE13BC; Wed, 27 Jun 2012 11:27:22 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.infoservices.in Received: from zimbra.infoservices.in ([127.0.0.1]) by localhost (zimbra.infoservices.in [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LKII+6ddHVS7; Wed, 27 Jun 2012 11:27:20 +0200 (CEST) Received: from shiva.selfip.org (unknown [122.176.30.116]) by zimbra.infoservices.in (Postfix) with ESMTPSA id 3B3D7DE1290; Wed, 27 Jun 2012 11:27:18 +0200 (CEST) Date: Wed, 27 Jun 2012 14:57:14 +0530 From: "J. Bakshi" To: users@httpd.apache.org Cc: icicimov@gmail.com Message-ID: <20120627145714.60935b82@shiva.selfip.org> In-Reply-To: References: <20120627112332.7972ac7a@shiva.selfip.org> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [users@httpd] how to add multiple redirection rule in .htaccess ? Many many thanks .... On Wed, 27 Jun 2012 17:26:56 +1000 Igor Cicimov wrote: > RewriteCond %{HTTP_HOST} ^mydomain.com [OR] > RewriteCond %{HTTP_HOST} ^www.mydomain.com > RewriteCond %{REQUEST_URI} !folderB/ > RewriteCond %{REQUEST_URI} !folderA/ > RewriteRule ^(.*)$ folderB/ [L] > > > On Wed, Jun 27, 2012 at 3:53 PM, J. Bakshi wrote: > > > Dear list, > > > > I already have the following at my .htaccess which is running well > > > > [........] > > > > RewriteCond %{HTTP_HOST} ^mydomain.com [OR] > > RewriteCond %{HTTP_HOST} ^www.mydomain.com > > RewriteCond %{REQUEST_URI} !folderB/ > > RewriteRule ^(.*)$ folderB/ [L] > > > > [...........] > > > > I need a little modification like if I give > > mydomain.com/folderA then it will go straight > > inside folderA otherwise the above will be honored. > > > > Can I write multiple rewrite condition ? I have tried a different > > block as above but with folderA added at .htaccess and the apache error > > log shows > > > > `````````````````` > > Request exceeded the limit of 10 internal redirects due to probable > > configuration error. > > Use 'LimitInternalRecursion' to increase the limit if necessary. Use > > 'LogLevel debug' to get a backtrace. > > ```````````````` > > > > How can I fix this ? > > > > Thanks --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org