You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Matus UHLAR - fantomas <uh...@fantomas.sk> on 2007/08/28 18:29:42 UTC

Re: [users@httpd] 301 Redirect

On 09.07.07 17:25, Ki Song wrote:
> I want to redirect visitors from http://www.foo.com/folder/index.html to
> http://folder.foo.com/index.html
> 
> What is the best way to accomplish this?

Wouldn't be better redirecting from http://www.foo.com/folder/ to
http://folder.foo.com/index.html ? If so, put
Redirect /folder/ http://folder.foo.com/
to definition of www.foo.com VirtualHost..

or do you really want only to redirect _one_ document?

Redirect /folder/index.html http://folder.foo.com/index.html

both redirectiont work with partial match e.g.
http://www.foo.com/folder/index.html2 will be redirected to
http://folder.foo.com/index.html2 but this is not problem in most cases
-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Remember half the people you know are below average. 

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