I'm having a problem with .htaccess and PHP-files in a sub folder. What I'm trying to achieve is to prevent anyone from being able to access any file in my sub folder - BUT I want my index.php to be able to access those files.
DOCROOT/subfolder -> www.somewebsite.com/subfolder/somefile.php -> Access Denied BUT
[index.php] <form action="/subfolder/somefile.php"> ... </form> -> Success! I would love to solve this by just using .htaccess. I tried deny from alland also some RewriteRules but those Rules also kill any request from index.php. I tried
Order deny,allow Deny from all Allow from 127.0.0.1 Allow from somewebsite.com Satisfy Any but the request from index.php is being denied. Can anyone help, please?