Index: [Article Count Order] [Thread]

Date:  Sun, 1 Jun 2008 12:23:10 -0700 (PDT)
From:  Dan Kriwitsky <webhosting (at mark) yahoo.com>
Subject:  [coba-e:13128] Re: Domain Alias
To:  coba-e (at mark) bluequartz.org
Message-Id:  <615824.82104.qm (at mark) web65602.mail.ac4.yahoo.com>
In-Reply-To:  <0F42B4F6-D2C9-4C20-90B8-7F82B15388C8 (at mark) rainstormconsulting.com>
X-Mail-Count: 13128


--- Jeremy Knope <jerome (at mark) rainstormconsulting.com> wrote:

> I've ran into this issue before, and would be awesome if a feature was  
> implemented to control it.  Instead I have to edit the site's config  
> file in /etc/httpd/conf/vhosts/siteXX
> In that file look for a block of rewrite rules, I comment them all out.
> Looks like this:
> RewriteEngine on
> RewriteCond %{HTTP_HOST}                !^1.2.3.4(:80)?$
> RewriteCond %{HTTP_HOST}                !^www.example.net(:80)?$ [NC]
> RewriteRule ^/(.*)                      http://www.example.net/$1 [L,R]
> RewriteOptions inherit
> 
> commenting those all out will prevent the server from forcing the  
> single domain on that site.  I usually end up doing an .htaccess to do  
> anything else like force www. or no www.

Can you give an example of .htaccess to force www without forcing a
specific domain?

-- 
Dan Kriwitsky