httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Cohen" <supp...@gej-it.com>
Subject RE: [users@httpd] Which do I need, mod_rewrite or a redirect?
Date Thu, 15 May 2003 01:21:31 GMT
Comment out (with #) all your NameVirtualHost * or VirtualHost * lines and
the Vhosts directive except the actual one you want to serve, that will give
you only one Vhost as the first and the last, in this case, only one site
will be presented.

All the best,
Jeff Cohen
Jeff@GEJ-IT.com
Tel. (416) 917-2324
www.GEJ-IT.com
GEJ-IT Networks!

> -----Original Message-----
> From: Eric Wagar [mailto:ewagar@yahoo.com]
> Sent: Wednesday, May 14, 2003 9:04 PM
> To: users@httpd.apache.org
> Subject: [users@httpd] Which do I need, mod_rewrite or a redirect?
> 
> I have a server that has multiple domains hosted on it.  There is only one
> active one, and a few that are old/deprecated.
> 
> I'd like anyone that goes to www.baddomain1.com and www.baddomain2.com to
> instead see www.gooddomain.com.  I would like it to be transparent, ie,
> there is no page telling the user the page/domain has changed.
> 
> I have played with the Redirect directive in a .htaccess, but it still
comes
> up with the www.baddomain1.com address in the url.
> 
> And, I am unsure which mod_rewrite I'd need.
> 
> thanks
> eric
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message