HOW TO ACCESS THE FILES PLACED ABOVE “DOCUMENT ROOT” BY USING .HTACCESS OR SOME OTHER MACHANISM?
I decided to put login scripts (PHP) and other validation CGI scripts above the “Document root” So that they will not visible for http. However, I do not know how to access such files using .htaccess or some other mechanism.
Therefore, can someone tell me how to do this. Please do provide any sample scripts if necessary. (I really appriciate if you can).
Thank you in advanced.









December 30, 2009 - 5:17 pm
Anything that you put OUTSIDE webroot is NOT accessible externally, i.e. it can NOT be accessed by any means that you mentioned.
The ONLY way to access those resources (scripts or anything else) is on the server with server side script that can read ANY information on server’s file system and process it in any way it needs…