Hello, so my question is this: I have a folder called admin and another general call, which is inside admin . Inside the admin folder I have a file called general.php so far so good, the problem is that if I access like this:
it enters the general folder and displays everything in it, and I do not want to display anything much less a list of directories would have how to avoid it? I tried with htaccess and did not succeed, now if I access it so it opens the file geral.php
I tried to use htacess as I said it like this:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^geral(.*)$ geral.php
RewriteRule ^teste(.*)$ teste.php
And it keeps getting into the general folder instead of entering the general.php file