allan smith
10-21-2006, 07:15 AM
I have put the following .htaccess in the root of my web site
# <-- To stop browsing a folder -->
Options -Indexes
# <-- Custom Error Pages -->
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
This stops directory browsing and sets home grown error pages
and it works.
Try access ing http://www.telfordsteamrailway.co.uk/guidedtour/ and you get an error page.
it also works in all sub folders from the root, with no additional .htaccess files in the structure.
However I want to permit browsing in
http://www.telfordsteamrailway.co.uk/forms/
so I put the following in that folder
# <-- To enable browsing browsing in this and deeper folders -->
Options +Indexes
(just the 2 lines as shown) but if you try it you still get the error
where did I go wrong?
help appreciated
Allan
# <-- To stop browsing a folder -->
Options -Indexes
# <-- Custom Error Pages -->
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
This stops directory browsing and sets home grown error pages
and it works.
Try access ing http://www.telfordsteamrailway.co.uk/guidedtour/ and you get an error page.
it also works in all sub folders from the root, with no additional .htaccess files in the structure.
However I want to permit browsing in
http://www.telfordsteamrailway.co.uk/forms/
so I put the following in that folder
# <-- To enable browsing browsing in this and deeper folders -->
Options +Indexes
(just the 2 lines as shown) but if you try it you still get the error
where did I go wrong?
help appreciated
Allan