Directory Listing

Directory Listing

Posted by: markfy
Posted on: 2007-03-20 08:47:00

Hi,

I have been searching the help files but have been unable to find any information on how I can turn off directory listing for certain websites I host with dreamhost, so if a user enters the wrong folder (that doesn't have a index.html file in) a 404 error (or similar) is shown not a list of the files in that directory.

Many Thanks for any help.


Re: Directory Listing

Posted by: Mousee
Posted on: 2007-03-20 08:55:00

From the DH Wiki: http://wiki.dreamhost.com/index.php/Modifying_directory_indexes

That would be the method I recommend going with anyways.
You could also just throw in a blank "index.html" file into any directory you don't want to show up, which would just show users a blank page. smile

Re: Directory Listing

Posted by: markfy
Posted on: 2007-03-20 09:00:00

That is great ... thanks for the very quick reply :D

Re: Directory Listing

Posted by: HelpfulNeighbor
Posted on: 2007-03-20 21:45:00

I personally use an index page with a redirect that throws the user back to the main location of my domain.

Tags: directory listingdreamhosthelp files404 errormany thanks