I've developed a PHP framework that operates with the directory structure of
/
/classes/
/templates/
/.../
/www/ (public_html)
But I've come across a host that only allows ftp to the DocumentRoot, so this imposes a security risk to my scripts. I don't want the root of the site to point to the root where my framework lies.
I've asked a question over at stackoverflow with a question to an .htaccess rewriterule to potentially solve this
Is there a better method to do this?