httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matus UHLAR - fantomas <uh...@fantomas.sk>
Subject Re: [users@httpd] 301 Redirect
Date Tue, 28 Aug 2007 16:29:42 GMT
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


Mime
View raw message