SandySynaptik Posted October 22, 2011 Share Posted October 22, 2011 I don't want my directory to be indexed/listed and want that request to error.html Link to comment Share on other sites More sharing options...
Don E Posted October 22, 2011 Share Posted October 22, 2011 One way you can do it is because a .htaccess file. Inside that file you put this: Options -Indexes Another way is by having a index.html in that directory. So when someone tries to access the directory directly, they will get that instead. Inside index.html, you can have a blank page, or a page with an error, or you can re-direct them to another page like error.html or something. To make it simple, I'd just go with the above option. For more info: http://www.thesitewizard.com/apache/prevent-directory-listing-htaccess.shtml Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.