404 and 500 error page for seo

Monday, August 1, 2011

If your website could not find the page in the server, then website will get 404 error (page not found). In this case Google will stop crawling your whole website because of broken link . To avoid that, you need to replace this error by creating Custom error page:

You can replace this error page by using .htaccess code.

Codes are:
ErrorDocument 403 http://domain.com/Custom error page.html
ErrorDocument 500 http://domain.com/Custom error page.html


Create .htaccess file and upload it to root directory.

To create the custom error page, please follow the steps given below:
 1. Create customer error page and upload it to website root eg: http://domain.com/Custom error page.html (this 'Custom error page.html' page will replace the error 403 or 500)

Likewise you can create custom error page for other errors.But, you should know the error codes.

Don't redirect your 404 or 500 custom error page to your homepage link(index page) insted of that, create one custom error page and give suggestions on what your reader can do to find the missing page (you can do it, by comment on the custom error page. ex:"Page is removed, please go back to home page)".

No comments:

Post a Comment

 

Most Reading

Sidebar One

+1-800-574-0902 +44-20-7993-2673 (ID: 173296)