Re: 301 Redirect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx ; 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux