Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 66203 invoked by uid 500); 22 May 2003 10:47:08 -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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 66190 invoked from network); 22 May 2003 10:47:07 -0000 Received: from mail145.mail.bellsouth.net (HELO imf58bis.bellsouth.net) (205.152.58.105) by daedalus.apache.org with SMTP; 22 May 2003 10:47:07 -0000 Received: from mail.insecurity.org ([68.17.229.236]) by imf58bis.bellsouth.net (InterMail vM.5.01.04.25 201-253-122-122-125-20020815) with ESMTP id <20030522104919.JHZP8294.imf58bis.bellsouth.net@mail.insecurity.org> for ; Thu, 22 May 2003 06:49:19 -0400 Received: from insecurity.org (laptop [192.168.1.2]) by mail.insecurity.org (Postfix) with ESMTP id 2DE35137FD for ; Thu, 22 May 2003 06:46:14 -0400 (EDT) Date: Thu, 22 May 2003 06:47:10 -0400 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) From: WC -Sx- Jones To: users@httpd.apache.org Content-Transfer-Encoding: 7bit In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.552) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] mod rewrite problem On Thursday, May 22, 2003, at 05:50 AM, Julian Grunnell wrote: > Making some progess. I now have: > > ... > RewriteEngine on > RewriteLogLevel 9 > RewriteLog logs/rewrite.log > RewriteCond %{HTTP_HOST} ^www\..* > RewriteRule ^/(.*)$ http://www1.whatever.com/$1 > ... > > Which sends www.* to www1.whatever.com/ > > But is there a single rule that for example would send: > www.test1.com --> www1.test1.com > www.test2.com --> www1.test2.com > www.test3.com --> www1.test3.com Yes, try - RewriteEngine on RewriteLogLevel 9 # 9?!? Owie! That's a lot of *meaningless* debug data... RewriteLog logs/rewrite.log RewriteCond %{HTTP_HOST} ^www\..* RewriteRule ^www\.test(\d*)/(.*)$ http://www$1.test$1.com/$2 That should redirect infinite www.testNumbers.com to wwwNumbers.testNumbers.com ... I think ... Something like that - too earlier, still, for me I guess ... BTW - Those of you who have tried to reach me - my mail server is back on-line ;) http://insecurity.org/ _Sx____________________ ('> iudicium ferat //\ Have Computer - v_/_ Will Hack... \|/ ____ \|/ "@'/ .. \`@" /_| \__/ |_\ \__U_/ --------------------------------------------------------------------- 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