Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 8038 invoked from network); 14 Feb 2011 21:06:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Feb 2011 21:06:43 -0000 Received: (qmail 73254 invoked by uid 500); 14 Feb 2011 21:06:39 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 73175 invoked by uid 500); 14 Feb 2011 21:06:39 -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 73167 invoked by uid 99); 14 Feb 2011 21:06:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Feb 2011 21:06:39 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of asai@globalchangemusic.org does not designate 140.99.28.186 as permitted sender) Received: from [140.99.28.186] (HELO triata.globalchangemultimedia.net) (140.99.28.186) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Feb 2011 21:06:31 +0000 Received: from localhost (unknown [127.0.0.1]) by triata.globalchangemultimedia.net (Postfix) with ESMTP id 53E60FD80B6 for ; Mon, 14 Feb 2011 21:06:09 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.8.3 triata.globalchangemultimedia.net 53E60FD80B6 DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=globalchangemusic.org; s=triata_dkim; t=1297717569; bh=SS9OUOFLR1x0xWj93C1UAy5Asxs=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=tuUlYj+GIrReCpgQ/Y3sVKsQVBVLSGTnuYKaTPJrv3GKM6dYJRVlXaVzezMWmMJgE Vubq61bhFzr7vMXqaAoEY3fYtXlyPXDOTfuICRfgJHp9JNAd3ZOVBUxbkTGAGGlvcv ujAzGeEduAAdWKyBDCHqnvb37T55CRXh1Zkneb8E= X-Virus-Scanned: amavisd-new at triata.globalchangemultimedia.net Received: from triata.globalchangemultimedia.net ([127.0.0.1]) by localhost (triata.globalchangemultimedia.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RIQp2j21nbay for ; Mon, 14 Feb 2011 14:06:08 -0700 (MST) Received: from [192.168.50.50] (63-235-26-227.dia.static.qwest.net [63.235.26.227]) by triata.globalchangemultimedia.net (Postfix) with ESMTP id 71E46FD808D for ; Mon, 14 Feb 2011 14:06:08 -0700 (MST) X-DKIM: Sendmail DKIM Filter v2.8.3 triata.globalchangemultimedia.net 71E46FD808D Message-ID: <4D59993F.4010302@globalchangemusic.org> Date: Mon, 14 Feb 2011 14:06:07 -0700 From: Asai Organization: Global Change Multi-Media User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2.104i Thunderbird/3.1.7 ThunderBrowse/3.3.4 MIME-Version: 1.0 To: users@httpd.apache.org References: <42c34e72-ad9c-4dd1-8a42-26fa371ddb52@iris> In-Reply-To: <42c34e72-ad9c-4dd1-8a42-26fa371ddb52@iris> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Global 301 Redirects Thank you for your response. Much appreciated. --asai On 2/9/2011 10:45 AM, Igor Galić wrote: > > ----- Original Message ----- >> Greetings, >> >> I'm trying to figure out a way to have each of my vhosts do a 301 >> redirect upon receiving a request which contains "www." >> >> Basically we want to drop all of those www subdomains for SEO >> purposes, >> but we are hosting dozens of websites, and would rather not have to > Really? Just dozens? > >> put >> in a redirect on every vhost entry. My thought were that we could do >> this using mod-rewrite and regexp, but not sure. > Anyway... Sure you could use mod_rewrite to complicate your config > even more -- as, with dozens! of vhosts you're afraid of touching them > > But even then you'd have to add, at least: > > RewriteEngine On > RewriteOptions inherit > > to each vhost. > >> Any insights? > Now, instead of complicating things, why not take a shot at simplifying > it with mod_macro: > http://www.cri.ensmp.fr/~coelho/mod_macro/ > >> Thanks. >> >> -- >> --asai > i > --------------------------------------------------------------------- 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