Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 85242 invoked from network); 2 May 2007 13:32:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 May 2007 13:32:56 -0000 Received: (qmail 643 invoked by uid 500); 2 May 2007 13:32:51 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 629 invoked by uid 500); 2 May 2007 13:32:51 -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 618 invoked by uid 99); 2 May 2007 13:32:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 May 2007 06:32:51 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of dhazin@gmail.com designates 209.85.132.249 as permitted sender) Received: from [209.85.132.249] (HELO an-out-0708.google.com) (209.85.132.249) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 May 2007 06:32:43 -0700 Received: by an-out-0708.google.com with SMTP id d31so125762and for ; Wed, 02 May 2007 06:32:22 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BgHbIvlmWh0fj2IIiHDzJZG4DQwoGDitqcTOpTYUt2pS+U+rOQOz94M5x3wuum5kJ6EgKkVfVbJs786xusGtpCCqaNGMUIBVK1+tYkNri2YapYjSztIzKJevo8llFjE+o2MJ4NNpanHcEo6+5/1qXlkWzvATIPBgihYxQRW5rqg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ekAQn0+X15dPvO3P/bKsr9QEKqP/5eld2tfCxmsBdaJb7+nINI9U0rXj2A20WiB6seSRxKaL1mbq/NIOz9Qj7PQ4QooDZzPoyAsOn+juuNqwVwnculSpA+uIwiSTtuRPng3cG8XaV+S65HpSLZ12DWyD8zOAmeKhjMfAfpVj4wY= Received: by 10.100.137.18 with SMTP id k18mr466914and.1178112741873; Wed, 02 May 2007 06:32:21 -0700 (PDT) Received: by 10.100.32.13 with HTTP; Wed, 2 May 2007 06:32:21 -0700 (PDT) Message-ID: Date: Wed, 2 May 2007 20:32:21 +0700 From: "Dmitry Hazin" To: users@httpd.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] ServerAlias and redirecting, please help Yes, that was my mistake. Anyway, without that line it didn't work too :( It seems that apache doesn't read RewriteRule directive after it had read ServerAlias one.. What do you mean "the technique of having two s"? We do have 2 virtualhosts: one for www.site.com and one for www.site.ru Do you suppose putting redirect directive into the www.site.com one or what? And what to do with ServerAlias then? 2007/5/2, Joshua Slive : > On 5/2/07, Dmitry Hazin wrote: > > I tried the following directives to force redirect: > > > > Well, I think the technique of having two s is clearer, > but anyway... > > > RewriteCond %{HTTP_HOST} ^xx\.site\.com [NC] > > RewriteCond %{HTTP_HOST} ^$ > > RewriteRule ^/(.*) http://www.site.ru/some/location/$1 [L,R=301] > > Delete the second RewriteCond. Those conditions must all be met for > the RewriteRule to be applied, and obviously the Host can't be > simultaneously xx.site.com and empty. > > Also, use the RewriteLog to debug problems with mod_rewrite. > > 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 > > --------------------------------------------------------------------- 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