Forum Moderators: phranque

Message Too Old, No Replies

Forward all subfolders/files to the root

         

tuckker

3:34 am on Dec 3, 2008 (gmt 0)

10+ Year Member



How do I redirect all subfolders/files to the root of the link domain.com?

Eg:

When user opens www.domain.com/abc, i want Apache (Tomcat to be exact) to redirectthe user to www.domain.com. This goes the same for www.domain.com/abc/abc or www.domain.com/abc/abc.html etc...

Thanks.

g1smd

8:35 pm on Dec 3, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What code have you tried?

What do you want to happen for domain.com requests?

Redirect to www, or redirect to the root of that domain?