httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rich Bowen <>
Subject Re: [users@httpd] mod_rewrite question
Date Thu, 09 Jan 2003 22:44:42 GMT
Hash: SHA1

On Thu, 9 Jan 2003, R'twick Niceorgaw wrote:

> Hi all,
> pardon me for this silly question but i'm  new to apache  and my boss wants
> to figure out this quickly.
> My problem is , we have few domains but want all of them to be redirected to
> one domain like
> if a user goes to he sees or
>  goes to
> samething for https also.
> I tried to do it with mod_rewrite but couldn't get anything usefull after
> reading the documents.

ServerAlias is the directive that you're looking for - lets you list
alternate names for the same site. No redirection or rewriting is needed
unless you really want to.

If you really feel that you must redirect, then a simple Redirect is all
that is necessary:

Redirect /

Path information is preserved, so /something would go to

- -- 
Rich Bowen -
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Made with pgp4pine 1.75-6


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message