|Last Updated on Friday, 31 January 2014 17:13 Written by Rob Turner Hits: 1707|
The 404 .htaccess error page keeps you in your site pages so a visitor is likely to stay and find what they want on your site.
Once you have your 404 page setup, all you need to do is send visitors of incorrect url’s to this page. To do this just add the following line to your .htaccess file :
ErrorDocument 404 /404.php
Most often, the .htaccess file will be in the home root /www folder on islandnet.com. This can change, for an example if you run you site or blog out of a specific folder within the /www.
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 errormessages refererring the 404 error to the url of the page.
ErrorDocument 404 /errormessages/404.php
That’s all there is to it.
For Wordpress users I recommend the 404 Redirected plugin instead. Especially if you have hundreds of pages or have changed recently from another format, it will capture incomming requests and try to redirect them to the page it thinks they want or display a 404, it logs everything and you can custom edid 404 redirects it logs to go anywhere in your site.