httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zac Stevens <...@cryptocracy.com>
Subject Re: [users@httpd] Which do I need, mod_rewrite or a redirect?
Date Thu, 15 May 2003 01:19:07 GMT
Hi Eric,

On Wed, May 14, 2003 at 06:03:56PM -0700, Eric Wagar wrote:
> 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.

The easiest way to accomplish this is adding the old domains as aliases
using the 'ServerAlias' directive.  If that is unsuitable, you will need to
use mod_rewrite.  I'm not a rewrite guru, but if you take a look through
the URL rewriting guide you will find plenty of example rules which you can
amend to fit your precise situation:

http://www.engelschall.com/pw/apache/rewriteguide/ 


Cheers,


Zac

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