.htaccess: Set custom 404 error page

Apache allows you to customize the server at the directory level, using .htaccess files. Below how to use them to serve custom 404 error (page not found), and other common error pages, to your users.

Alternately, You can place the 404 error template anywhere you want in a folder. For example you could place all error messages in a folder called “errormsg” refererring the 404 error to the url of the page.

[php toolbar=”false” classname=”one_line”] ErrorDocument 404 /errormsg/404.php [/php]

Read more