On Sun, 16 Jul 2000, Barry Hoggard wrote:
>> >No! That's a silly way to do it. You want to use mod_rewrite.
>> >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>
> 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.

The only bad thing about the mod_rewrite solution is that this is done
dynamicly on each request (including images etc.), while the <VirtualHost>
solution is only put into structures on initial start up time. For performance
reasons you are better off with the VirtualHost solution to decrease the
processing for each hit.

--
Sander van Zoest                                          [EMAIL PROTECTED]   
High Geek                                            http://www.vanZoest.com/

Reply via email to