Navigation in my site is like this:
www.example.com/pictures/cars/
etc
I am trying to allow only .html
and .jpg
in these folders, but I also need the directory to be accessible
Order allow,deny
Deny from all
<FilesMatch ".*\.(jpg|html)$">
Order allow,deny
Allow from all
</FilesMatch>
This code works but the content now is only accessible while trying to access
https://www.example.com/pictures/cars/index.html
and https://www.example.com/pictures/cars/
is showing a 403 error
Can anyone help me with this?