In the .htaccess file when we type
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
If there is a directory that exists inside the root folder for example say errors. It will be shown if someone enters the URL. What can we do to prevent the opening of the parent directory structure directory in such a case? How to prevent exposing parent directory structure to the user in case of all the folders that exist in the root directory and queried inside the URL
like url= localhost/errors
Any command for that. I am using apache 2.4.46