Re: Redirecting All Traffic to Homepage

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

 



On 01/08/07, Rob Wilkerson <r.d.wilkerson@xxxxxxxxx> wrote:
> A customer of mine has a website for an annual event that just ended.
> She's asking me to effectively disable all pages other than the index
> page.  Rather than find and rename each one or some other such hack,
> I'd rather create a simple redirect in an .htaccess file but I haven't
> been successful with anything I've tried so far.  I'm hoping someone
> here can help.

Depending on what you mean by redirect (usually it means sending a 3xx
response so the client requests the new address), try something like:

# Won't send a redirect, transparent to the client.
AliasMatch .* /full/path/to/index.html

# Will send a redirect
RedirectMatch permanent ^/.+ /

See:
http://wiki.apache.org/httpd/WhenNotToUseRewrite

-- 
noodl

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