We built our eCommerce web site using Angular as a single page application. We have implemented a spinner that runs until the page is responding with the expected content. We have some category pages which were crawled and indexed by Google but which are no longer available on the site.
What is the best practice for old pages? Should I create "404 Not Found" pages for them instead of saying "loading" forever? Is setting a no index meta tag enough?
If the content never existed in the first place, you should return 404. Crawlers will know that there's nothing to see on that page and move on.
If the content used to exist at that URL but no longer does (for example, a product was removed from the website), you should return 410.
404 means there is nothing at this URL. 410 means that there is no longer anything at this URL. While it's a subtle difference, a 410 error code will tell crawlers to stop trying to access that page and will (most likely) drop it from their indexes. This really won't make too much of a difference in your SEO rankings besides letting search engines remove URLs of de-listed products. If implementing this is laborious, you really don't need to- 404 will suffice.
410 GONE: The target resource is no longer available at the origin server and that this condition is likely to be permanent.
If the origin server does not know, or has no facility to determine, whether or not the condition is permanent, the status code 404 Not Found ought to be used instead.
Answered by Josh Honig on August 10, 2020
1 Asked on December 9, 2020 by abbas-raza
1 Asked on December 4, 2020 by devon-sherman
1 Asked on December 4, 2020 by webman
1 Asked on December 4, 2020 by tash
2 Asked on October 27, 2020 by tamirnahum
1 Asked on October 25, 2020 by mohamed-el-qassas-mvp
0 Asked on October 23, 2020
1 Asked on September 26, 2020 by maurice
2 Asked on September 19, 2020 by 1up
1 Asked on August 10, 2020 by umang-naik
0 Asked on July 29, 2020 by porton
Get help from others!