always true rewritecond
Posted
by
Matt
on Server Fault
See other posts from Server Fault
or by Matt
Published on 2012-06-24T19:50:18Z
Indexed on
2012/06/24
21:17 UTC
Read the original article
Hit count: 262
My university provides a public_html
file in each student's Linux directory so tat each student can have a webpage. I want to put all my PHP scripts into that file and place the index in a sub-directory called webroot
. I'm trying to work out a way to have an .htaccess
file in the public_html
that will redirect ALL requests in that folder to be redirected.
There's lots of advice on redirecting any file that doesn't exists but I want to redirect regardless of the existence of a file. Can I use something like RewriteCond TRUE
?
© Server Fault or respective owner