I'm having problems getting this .htaccess file to work. I would like to put the following in the parent level directory of the images directory so that only images can be displayed and nothing else. What's happening is that none of the images in the directories will display. However, I only want the specified images to display and no other file format.
Here's the code:
Do you see anything wrong with the above code?Code:deny from all <Files ~ "^\w+\.(gif|jpe?g|png)$"> order deny,allow allow from all </Files>