when users enter a page in my website which doesn’t exist, I don’t want the browser to display standard 404 error page. As far as I know I can create a sample page for my users to explain some possible reasons why they got to that page. Does anyone know how it is done? Thanks
@MindzaiJan 12.2010 — #You will need to set the Apache ErrorDocument directive. If you have access to httpd.conf you can add it there (or in the relevant virtualhost block for your site), otherwise you can add the following to an .htaccess file in your document root:
ErrorDocument 404 /404.html
Obviously /404.html should point to your 404 page. You can also change the response code to create other error pages if you want to.