Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 41445 invoked by uid 500); 17 Apr 2003 21:35:24 -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 41432 invoked from network); 17 Apr 2003 21:35:24 -0000 Received: from venus.commerce.ubc.ca (137.82.154.16) by daedalus.apache.org with SMTP; 17 Apr 2003 21:35:24 -0000 Received: from exchange.commerce.ubc.ca (exchange.commerce.ubc.ca [137.82.66.44]) by venus.commerce.ubc.ca (8.9.3/8.9.3) with ESMTP id NAA10324 for ; Thu, 17 Apr 2003 13:21:02 -0700 Received: from usager70-65.hec.ca ([132.211.70.65]) by exchange.commerce.ubc.ca with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2656.59) id 2DLPDNFF; Thu, 17 Apr 2003 14:35:41 -0700 Date: Thu, 17 Apr 2003 17:35:27 -0400 (=?ISO-8859-1?Q?Est_=28heure_d'=E9t=E9=29?=) From: Joshua Slive To: Apache List In-Reply-To: <003b01c30528$7218bb40$14548f0a@gemini> Message-ID: References: <003b01c30528$7218bb40$14548f0a@gemini> X-X-Sender: slive@exchange.commerce.ubc.ca MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] Mod_rewrite help On Thu, 17 Apr 2003, Peter Ferrigan wrote: > Pretty much like this: > > Hostname.olddomain.com > > Needs to go to > > Hostname.newdomain.com > > I've tried redirects, but that doesn't take into account any directory > that the user may have typed in. Uhhh... Yes they do. > To add to this mess, I've also got Virtual hosts, but they all have the > same domain name. ie: > > Host1.domain.com > Host2.domain.com > Etc.. RewriteEngine On RewriteCond %{HTTP_HOST} ([a-z]*)\.olddomain\.com$ [NC] RerwiteRule ^/(.*) http://%1.newdomain.com/$1 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