Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 13630 invoked from network); 27 Jan 2006 09:06:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Jan 2006 09:06:24 -0000 Received: (qmail 38671 invoked by uid 500); 27 Jan 2006 09:06:10 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 38660 invoked by uid 500); 27 Jan 2006 09:06:10 -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 38649 invoked by uid 99); 27 Jan 2006 09:06:10 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [195.188.213.64] (HELO asmtp-out5.blueyonder.co.uk) (195.188.213.64) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jan 2006 01:06:10 -0800 Received: from 82-34-18-2.cable.ubr03.basi.blueyonder.co.uk ([82.34.18.2] helo=[127.0.0.1]) by asmtp-out5.blueyonder.co.uk with esmtp (Exim 4.52) id 1F2PSc-00072Z-JM for users@httpd.apache.org; Fri, 27 Jan 2006 09:00:02 +0000 Message-ID: <43D9E114.1050809@turrisi.co.uk> Date: Fri, 27 Jan 2006 09:00:04 +0000 From: Tom Turrisi User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@httpd.apache.org References: <43D8AEF7.1000301@turrisi.co.uk> <43D925B2.9020809@turrisi.co.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Mass configured virtual hosts and dynamic alias's X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Joshua Slive wrote: > On 1/26/06, Tom Turrisi wrote: > >>Thanks for you reply. It's put me in the right direction but i'm still >>having a problem working out the correct regex for what i need to do. >> >>I don't know how to get the first and second characters of the domain >>into the places where i have put <1> and <2> in the following config. >>I also don't know how to strip www from the server_name if it's present. >>I hope someone can be of help with this! > > >> RewriteEngine On >> RewriteMap lowercase int:tolower >> RewriteRule ^/dshop/(.*)$ >>/domains/<1>/<2>/${lowercase:%{SERVER_NAME}}/shop/$1 > > > Something like > > RewriteCond ${lowercase:%{SERVER_NAME}} ^(www\.)?(.)(.)(.*) > RewriteRule ^/dshop/(.*) /domains/%2/%3/%2%3%4/shop/$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 > > > That has worked perfectly. Thank you so much! Tom --------------------------------------------------------------------- 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