httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sander Holthaus - Orange XL" <i...@orangexl.com>
Subject RE: [users@httpd] Which do I need, mod_rewrite or a redirect?
Date Thu, 15 May 2003 11:56:36 GMT
Make a single virtualhost for all the bad domains. 

<VirtualHost *:80>
    ServerName www.baddomain1.com
    ServerAlias *.baddomain1.com *.baddomain2.com *.baddomain3.com
    RedirectMatch permanent ^.* http://www.gooddomain.com/
</VirtualHost>

This should take care of it. It will redirect all traffic to the new good
domain.

Kind Regards,
Sander Holthaus

-----Original Message-----
From: Jurgen [mailto:apache@squarehosting.com] 
Sent: donderdag 15 mei 2003 5:04
To: users@httpd.apache.org
Subject: Re: [users@httpd] Which do I need, mod_rewrite or a redirect?


Hi,

if you make a correct redirect the location in the browser window will
change to the good domain. Or I am not getting the problem.

Jurgen


On Wed, 14 May 2003 18:03:56 -0700
"Eric Wagar" <ewagar@yahoo.com> wrote:

> 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


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