404 or 410 status Errors are for specific pages that do no longer exist. However, 410 is for pages that are gone, and you probably don't intend to recreate them. On the other hand, 404 error pages are for not found pages. The purpose of this article is to discuss how Search Engines treat both error status. We will also see how you can configure them on your website. Finally, we will talk about the advantages of using one compared to the other.
What is the 410 Error page and how to set up?410 Error page means the page is gone. In order words, if you have a page that will no longer exist, you can use the 410 gone pages. 410 error page is used to specify that a page a permanently removed and will not come back. I will probably recommend the 410 Error page to eCommerce businesses or companies that run websites with URLs that are continually changing. Setting up the 410 Gone pages may vary depending on the server. But, if you are hosting your site on a server that supports the .htaccess file, this is how you can configure your 410 gone pages.
- You need to add this small code to your .htaccess file.
In the code above, /path/to/folder/ represent that folder or absolute URL that you permanently deleted. For example, if you removed the page website-development, that is like https://www.prositeweb.ca/website-development, you can replace the /path/to/folder/ by /website-development. Moreover, the "default" in the second line will display the following message:
Redirect gone /path/to/folder/ ErrorDocument 410 default(or 410 file)
The requested resource /website-development is no longer available on this server, and there is no forwarding address. Please remove all references to this resource.
As you can see the message is not formatted or uniform to your website. But with a little customization and styling, you can create an excellent looking 410.php(.html or whatever you want) page. Once you do that, instead of "default" in the second line, you can add the path to the page you created.
What is the 404 Error page and how to set up?I believe most of us are used to 404 Error pages as you may have seen it once or twice on websites. It just specifies that a page is not found. There are many options when a page is redirected to a 404 not found:
- The page might no longer exist
- You may have added the wrong URL to the anchor
- The page may have been deleted temporary