Re: Custom 404 only works for .html pages
Posted: Tue Apr 11, 2006 2:51 am
in .htaccess:
ErrorDocument 404 /error.html
provided that:
/error.html doesn't exist
you don't have a page using 'error' as its alias (if you did, that'd be what gets served instead)
you're using the cmsms .htaccess that rewrites to .html
note that this will cause *all* 404's to run through cmsms, which could load the server down if it's a busy site and there are missing files (or those blasted worms and hackers hit you hard looking for vulnerable code).
you might be better off creating a static custom 404 page and using it instead.
ErrorDocument 404 /error.html
provided that:
/error.html doesn't exist
you don't have a page using 'error' as its alias (if you did, that'd be what gets served instead)
you're using the cmsms .htaccess that rewrites to .html
note that this will cause *all* 404's to run through cmsms, which could load the server down if it's a busy site and there are missing files (or those blasted worms and hackers hit you hard looking for vulnerable code).
you might be better off creating a static custom 404 page and using it instead.