Re: 301 Redirect

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

 



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

RedirectMatch permanent /([^/]*)/index.html   http://$1.foo.com/index.html

Mark.

-- 
Mark Watts BSc RHCE MBCS
Senior Systems Engineer
QinetiQ Trusted Information Management
Trusted Solutions and Services Group
GPG Key: http://keyserver.veridis.com:11371/search?q=0x455420ED

Attachment: pgpIg4PO7yeIA.pgp
Description: PGP signature


[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