Jump to content

.htaccess for custom error codes


son
 Share

Recommended Posts

Have the following in .htaccess

ErrorDocument 401 /401.phpErrorDocument 403 /401.phpErrorDocument 404 /404.phpErrorDocument 500 /500.php

and works fine for web root requests. However, does not work if wrong file accessed within a directory. Have tried to have full system paths and is the same situation. Do I need to have .htaccess for each folder then? Or how can I improve this? Thanks,Son

  • Like 7
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...