Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- htaccess instead of listing files - show 404 page?


lucy24 - 9:47 pm on Feb 22, 2012 (gmt 0)


Putting an index file in your folder blocks a directory listing.

So does a single-line htaccess file:

Options -Indexes

... except that you don't need to, because that's already your default isn't it?

The form
Options All -Indexes
is likely to be a big, big mistake:

Warning
Mixing Options with a + or - with those without is not valid syntax, and is likely to cause unexpected results.

When Apache docs put up a warning, pay attention. The "unexpected results" is a euphemism for "disastrously unwanted results" ;)


Thread source:: http://www.webmasterworld.com/apache/4420489.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com