Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 16600 invoked from network); 30 Nov 2006 09:55:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Nov 2006 09:55:08 -0000 Received: (qmail 9231 invoked by uid 500); 30 Nov 2006 09:55:06 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 9214 invoked by uid 500); 30 Nov 2006 09:55:06 -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 9203 invoked by uid 99); 30 Nov 2006 09:55:05 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Nov 2006 01:55:05 -0800 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=INFO_TLD X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [128.121.50.133] (HELO oal.securesites.net) (128.121.50.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Nov 2006 01:54:53 -0800 Received: from [192.168.1.2] (mna75-7-82-230-224-133.fbx.proxad.net [82.230.224.133]) (authenticated bits=0) by oal.securesites.net (8.13.6.20060614/8.12.6) with ESMTP id kAU9sVxD051296 for ; Thu, 30 Nov 2006 09:54:32 GMT (envelope-from norman@khine.net) Message-ID: <456EAB24.8060908@khine.net> Date: Thu, 30 Nov 2006 10:57:56 +0100 From: Norman Khine User-Agent: Thunderbird 1.5.0.8 (Macintosh/20061025) MIME-Version: 1.0 To: users@httpd.apache.org X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] How to chain two rules Hello, Can someone please advise how to chain two rules together so that: [1] [2] ServerName mysite.com [3] ServerAlias www.mysite.com [4] RewriteEngine On [5] RewriteCond %{HTTP_HOST} ^www\.mysite\.info [nc] [6] RewriteRule (.*) http://mysite.info/$1 [R=301,C] [7] RewriteRule ^/(.*) [8] http://mysite.com:5080/VirtualHostBase/http/mysite.com:80/sites/site/VirtualHostRoot/$1 [L,P] [9] ErrorLog /var/log/apache2/site_error.log [10] CustomLog /var/log/apache2/site_access.log combined [11] RewriteLog /var/log/apache2/site_rewrite_log [12] When I have this rule, and type http://www.mysite.com my requests don't go to the next rule. I have specified the 'C' flag which is the chain to next rule, all I get is: Not Found The requested URL // was not found on this server. In the site_error.log [Thu Nov 30 10:08:14 2006] [error] [client xxx.xxx.xxx.xxx] File does not exist: /usr/htdocs there is no error in the RewriteLog /var/log/apache2/site_rewrite_log Can anyone please advise how to make this work. Many thanks Norman --------------------------------------------------------------------- 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