Hiding Content in a Directory

This works in quite a few ways. You can either hide ALL content, hide only certain file types, or, if you server hides content by default and you want to show it, then you can do that, too!! First, open your .htaccess file.

If you want to hide all content, insert this code:

IndexIgnore *


If you want to hide just certain file types, insert this code, and just list the file types you want to hide, like this:

IndexIgnore *.png *.gif *.jpg


If you want to show your content, insert this code:

Options +Indexes


Tutorial adapted from Sillymahala.com. I did not steal this, since I own Sillymahala AND this site.