Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 58434 invoked from network); 12 Nov 2007 21:31:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Nov 2007 21:31:49 -0000 Received: (qmail 40638 invoked by uid 500); 12 Nov 2007 21:31:27 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 40625 invoked by uid 500); 12 Nov 2007 21:31:27 -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 40614 invoked by uid 99); 12 Nov 2007 21:31:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 13:31:27 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [84.19.175.157] (HELO puleddu.blackbit.it) (84.19.175.157) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2007 21:32:15 +0000 Received: from [192.168.1.25] (unknown [131.114.250.239]) by puleddu.blackbit.it (Postfix) with ESMTP id 3F690AD94A6 for ; Mon, 12 Nov 2007 21:45:46 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: References: <787fc380711121005m44d0093di39d13d00fea68a18@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <60613D2D-BED6-4942-AF3D-D0F06950E8FB@italocalvino.it> Content-Transfer-Encoding: 7bit From: Antonio Piu Date: Mon, 12 Nov 2007 22:31:05 +0100 To: users@httpd.apache.org X-Mailer: Apple Mail (2.752.2) X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] domain.com/~user -> user.domain.com > > >> Want I want to do is the following: > >> > >> If someone accesses http://user.domain.com/ he shall be > redirected to > >> http://www.domain.com/~user/ > > > > From http://www.easymodrewrite.com/example-subdomains without having > > tested it, this should work: > > > > RewriteEngine On > > RewriteBase / > > RewriteCond %{HTTP_HOST} !www.domain.com$ [NC] > > RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).domain.com$ [NC] > > RewriteRule (.*) ~%2/$1 [L] > > > It works like a charm! thankyou a lot! > > > > > > > > > --------------------------------------------------------------------- > > 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 > > --------------------------------------------------------------------- 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