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
?