hope you are dong fine.
I have have a subfolder in my public_html folder.
In the subfolder, I have a .htaccess file with the following code:
# Disable indexing:
Options All -Indexes
# Ignore every file:
IndexIgnore *
# Prevent access to any file:
<FilesMatch "^.*$">
Order Allow,Deny
Deny from all
</FilesMatch>
Now when I browse to the subfolder, for example, http://www.mysite.com/subfolder/myfile.php, I shown my site’s index.html page!
Can this really be happening?!
Can someone please tell me what I need to do to show a generic “Access not allowed” page?
Thanks in advance for your help.
This problem is solved.
The problem was caused by another .htacess file in my public_html folder (which was created by Drupal) which is showing the index.html page.