Kickin
07-12-2005, 11:00 AM
I have identical .htaccess files in two different directories. One works fine, the other gives an error. I want to deny access to all IPs except my office and a busines partner. The .htaccess does deny access on both directories, but only one shows "error.htm", the other says:
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
.htaccess file looks like this:
Order Deny,Allow
Deny from all
Allow from XX.XXX.XXX.XXX #My IP
Allow from XXX.XX.XXX.XX #Business Partner's IP
Allow from XX.XXX.XXX.X #Server IP
ErrorDocument 403 /error.htm
I don't know much about Apache or htaccess, but it seems pretty straight forward. Any idea why one works but not the other? I put the error.htm page in both directories.
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
.htaccess file looks like this:
Order Deny,Allow
Deny from all
Allow from XX.XXX.XXX.XXX #My IP
Allow from XXX.XX.XXX.XX #Business Partner's IP
Allow from XX.XXX.XXX.X #Server IP
ErrorDocument 403 /error.htm
I don't know much about Apache or htaccess, but it seems pretty straight forward. Any idea why one works but not the other? I put the error.htm page in both directories.