httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rich Bowen <rbo...@rcbowen.com>
Subject Re: [users@httpd] mod_rewrite question
Date Thu, 09 Jan 2003 22:44:42 GMT
-----BEGIN PGP SIGNED MESSAGE-----
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 http://www.domain1.com he sees http://www.domain1.net or
> http://www.domain1.com/xyz  goes to https://www.domain1.net/xyz
> 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 / http://other.name.net/

Path information is preserved, so /something would go to
http://other.name.net/something

- -- 
Rich Bowen - rbowen@rcbowen.com
http://kenya.rcbowen.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Made with pgp4pine 1.75-6

iD8DBQE+HftfXP03+sx4yJMRApISAJ9H4sMJLGksnzD23jrJdiUrKrRwgwCgxGI4
ISd5oXvhkSs7RZAhWm2aMkQ=
=VNmP
-----END PGP SIGNATURE-----



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