Index: [Article Count Order] [Thread]

Date:  Sun, 1 Jun 2008 11:20:22 -0400
From:  Jeremy Knope <jerome (at mark) rainstormconsulting.com>
Subject:  [coba-e:13126] Re: Domain Alias
To:  coba-e (at mark) bluequartz.org
Message-Id:  <0F42B4F6-D2C9-4C20-90B8-7F82B15388C8 (at mark) rainstormconsulting.com>
In-Reply-To:  <328560.47291.qm (at mark) web65611.mail.ac4.yahoo.com>
References:  <328560.47291.qm (at mark) web65611.mail.ac4.yahoo.com>
X-Mail-Count: 13126

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.
  -- Jeremy
Jeremy Knope
Web Programmer
Rainstorm Consulting: http://www.rainstormconsulting.com
"Designing Strategies for Internet Success."
jerome (at mark) rainstorminc.com
Phone: 207-866-3908
Fax: 207-866-0297

On Jun 1, 2008, at 3:59 AM, Dan Kriwitsky wrote:

> Under  	"Web Server Aliases" in site settings you can enter another  
> domain.
> e.g. If you have example.net configured you can add example.com and
> www.example.com.
>
> How do I configure BQ to keep from rewriting that alias to the main  
> site
> URL? Right now, when I visit www.example.com it rewrites to
> www.example.net.
>
> -- 
> Dan Kriwitsky
>
>
>
>


	

13126_2.html (attatchment)(tag is disabled)