Prevent listing of directories
-
This is a simple question that I can’t quite figure out. On my wordpress 2.2 website an image or media file can be viewed and in the url box this is shown :
https://website/wp-content/uploads/2007/09/picture.jpg
if I just remove the image from the url like :
https://website/wp-content/uploads/2007/09/
all the contents of that upload directory is shown. How can I prevent this to be shown? Most websites seem to show a “this page does not exist” error message or even take you back to the homepage. I would like to have this setup rather then the whole directory listed. Is this something I can change via file permissions or something other? Any advance appreciated. Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Prevent listing of directories’ is closed to new replies.