Hello all, I'm in the midst of making my website work, and I ran into a problem with error documents. To begin with, here's how my directory structure looks like: + www (root)
|
+- foo
| |
| +-- bar (750)
|
+- .htaccess
|
+- error.php
I want to prevent user access into /foo/bar, so I changed the permission of the folder (bar) to 750, and 640 for its contents. In my .htaccess, I have specified as below: ErrorDocument 400 /error.php
ErrorDocument 401 /error.php
ErrorDocument 403 /error.php
ErrorDocument 404 /error.php
ErrorDocument 500 /error.php Attempting to visit /foo/bar, I have expected to be redirected to error.php, as it is 403 error (or is it not?). However, I am getting a usual 403 Forbidden page instead. Forbidden
You don't have permission to access /foo/bar/ on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Any ideas?