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...

-Tom

> ---- Begin Original Message ----
> 
> From: Todd Finney <[EMAIL PROTECTED]>
> Sent: Sun, 16 Jul 2000 22:33:18 -0400
> To: mod_perl <[EMAIL PROTECTED]>
> Subject: Re: Re: redirecting a domain [OT]
> 
> 
> At 10:23 PM 7/16/00, Barry Hoggard wrote:
> >No!  That's a silly way to do it.  You want to use mod_rewrite.
> >Here's the relevant part of my httpd.conf:
> >
> >RewriteEngine On
> >RewriteCond %{HTTP_HOST}  !^www.investorama.com$
> >RewriteCond %{HTTP_HOST}  !^$
> >RewriteRule /?(.*) http://www.investorama.com/$1 [R=permanent,L]----
> 
> Too complicated.  What's wrong with this:
> 
> <VirtualHost ip.of.domain.org>
> ServerName www.domain.org
> Redirect permanent / http://www.domain.net/
> </VirtualHost>

Reply via email to