Forum Moderators: phranque

Message Too Old, No Replies

Custom Error Messages?

When using Chmod settings.

         

Willis

1:29 am on Mar 6, 2004 (gmt 0)

10+ Year Member



To prevent constant downloading the chmod settings are used to close a folder, however people still dont get the concept of the folder working one day but not the next . . how can I, maybe using htaccess, have custom messages work when that folder , or subdirectories, bring up error messages like :

You don't have permission to access /whatever/subfolder/ on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

keyplyr

7:34 am on Mar 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Just create a webpage displaying whatever message you like and name it something like 403.html

Then, put this in your .htaccess:

ErrorDocument 403 /403.html

(notice space preceeding slash)

Your custom page will now be served instead.