> -----Original Message----- > From: Arnau [mailto:arnaulist@xxxxxxxxxxxxxxxxxx] > Sent: Tuesday, November 07, 2006 11:13 AM > To: users@xxxxxxxxxxxxxxxx > Subject: [users@httpd] Apache redirect, how? > > Hi all! > > I've got apache2 running on debian with several virtual hosts. > > Now I need to redirect: > > http://www.foo.com -> http://www.bar.com > > but > > http://www.foo.com/test doesn't have to be redirected. > > I have tried to include the directive "Redirect / > http://www.bar.com" > where the virtual host www.foo.com is defined but apache > redirects also > http://www.foo.com/test to www.bar.com. Did you look in the docs? http://httpd.apache.org/docs/2.2/mod/mod_alias.html#redirectmatch with a negative regexp - or use mod_rewrite. Rgds, Owen Boyle Disclaimer: Any disclaimer attached to this message may be ignored. > > Anybody knows how I can do this? for the time being I have > created a > index.php that does this redirection. > > Cheers! > -- > Arnau > > --------------------------------------------------------------------- > 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@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company. --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx