I run a site which is externally hosted, so I have no control over Apache per se. I am trying to use .htaccess with some limited success but would appreciate some help. My host appears to have '+Indexes' as the default as any folder can be browsed. I want to stop this, and provide 'home grown' error pages. I put Options -Indexes ErrorDocument 401 /error_docs/unauthorised.html ErrorDocument 403 /error_docs/forbidden.html ErrorDocument 404 /error_docs/not_found.html ErrorDocument 500 /error_docs/internal_server_error.html In the root - and that worked, stopping browsing in all folders I then wanted to enable browsing in 1 particular folder so I put Options +Indexes in that folder - it didnt work. why? I changed the root .htaccess - took out '-Indexes' to use the default which is 'enabled browsing' and then put '-Indexes' in every other folder except the one I want to browse - that worked - but seems to me to be the wrong way to go about it i.e. stop all and permit specific is more secure. Comments / help Please? Also with the '-Indexes' in the /cgi-bin/ folder .pl scripts dont execute and email form falls over - so I took it out and at the moment that folder can be browsed Again - help please I tried AllowOverride All Options +Indexes in the appropriate folder but browsing still not permitted in the folder Also tried IndexOptions FancyIndexing Options +Indexes I know the .htaccess in the subfolders is being parsed because I changed the error page in the sub-folder and the changed page is returned but I cannot get indexing to work in the way I think seems obvious i.e. all off then enable as required Allan
I am getting nowehere with this. I presume the lack of reply means everyone else is also stumped Allan