this is my current ".htaccess" file (placed on my documentroot):
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
My project structure is:
app/ <---- here i have all my php code
public/ <----- css/js/images
.htaccess
index.php <---- starting point
I wish to deny direct access to my app files, like "/app/controller/controllerName.php" (i will handle all my request by using a router instead...), how can i achieve this? Without touching the public folder tree?