At 12:26 AM 7/17/00, Tom Brown wrote:
>On Sun, 16 Jul 2000, Barry Hoggard wrote:
> > Nothing is wrong with that solution if you only have a few domains.
> > We own a lot of misspellings of our company name, so I don't want to
> > add each of them individually to the conf file.
>
>double that count... since you also nicely solved the problem of
>domain.com versus www.domain.com, which becomes significant when cookies
>are brought into play...

Unless you have a _lot_ of domains, I still can't see the Rewrite solution 
being a win, given the overall complexity and the performance hit that 
Sander mentioned.  After all, how often do you add a domain?  It's not like 
you have to go in and add new ones regularly.

To take care of the multiples, and the no-www thing, add a ServerAlias line:

<VirtualHost ip.of.domain.org>
         ServerName www.domain.org
         ServerAlias domain.org domain.net www.otherdomain.org
         Redirect permanent / http://www.domain.net/
</VirtualHost>

Todd


Reply via email to