My project structure is:
-application
-lib
-public
-index.php
-.htaccess
.htaccess now is:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]
I need to restrict access to all folders exept public and index.php file. How to do it?
I tried to add Deny all to my .htaccess and Allow all into public folder, but my index.php become inaccessable.