What to use instead of a 404
-
Hey there Mozzers,
What would be preferable to use instead of a 404 on a ecommerce website.
Can I use a 301 redirection to the main category of the product? So for example if I have a t-shirt that is not available anymore can I use a 301 to redirect the traffic to the clothing category?
-
Hi,
It's not about 'using 404 pages'. It's about removing the occurence of a 404 page when a product isn't available...
So the answer is yes. It's fine to redirect what was a product page to the main relevant category page if that product is no longer available and you don't plan on restocking in the future.
In fact it's recommended if you want to preserve a large percentage of the link equity the original page has built up, and hopefully provide a good user experience by allowing customers to find alternative products.
The only issue is if you have thousands of products being discontinued, then the amount of 301s can affect the speed of your website. But I've managed redirects for websites with 100s of thousands of products, and 10s of thousands of error pages without any issue.
I'd echo Yossi in saying that it may be worth creating a custom 404 Error Page which helps your users if they encounter it, and also improves your branding - with most eCommerce sites with large inventories, it's inevitable error pages will crop up despite your best efforts.
And I'd echo Nitin in saying that if you might get the product back again, you're better leaving the pages on the site and allowing customers to register their interest when it reappears...
-
Hi AngeloS,
I agree with Yossi that soft 404 is not a good practice if the product isn't available.
But here, you're talking about the case where your product isn't available anymore, which is not the 404 case clearly. 404 means, resource not found on the website. So, your page is not 404 semantically as page it still there with a different availability status.
Here comes my recommendations on this:
- If the "product" is temporarily unavailable, you can show an appropriate message with 200 http status. Additionally, for better UX, you can show a recommendation bar showing other related products and a notify-me option where you can get user's email id on which you can send a notification mail as soon as this product gets back in stock.
- If the "product" is permanently discontinued and you want to get rid of that page altogether, you can probably show 200 http status with an appropriate message and have a noindex tag on these pages, or you can start showing 410 http status if you want to convey a message to bots that your "page" won't come back ever.
You can read more about HTTP status codes here.
Hope this helps!
-
Hi..
Google guidelines recommends that If a page does not exist, you should state that clearly to the user and return a 404 page.
What you really need to do is to set up a very clever 404 page so you will not loose the client. There are many ecommerce sites that have super clever 404 pages where users are able to see similar items that are in stock, make a search or go to different page.. Just be creative and research what works for your competitors.Using 301 to 404 pages is a bad practice in general..
Good luck
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Should I use the Change of Address in Search Console when moving subdomains to subfolders?
We have several subdomains for various markets for our business. We are in the process of moving those subdomains to subfolders on the main site. Example: boston.example.com will become example.com/boston And seattle.example.com will become example.com/seattle and so on. It's not truly a change of address, but should I use the change of address tool in GSC for all of these subdomains moving?
Intermediate & Advanced SEO | | MJTrevens0 -
Sitelink Search Box mark-up when multiple query strings are used
Hi all, I'm looking to implement sitelink search box mark-up in Google Tag Manager in JSON-LD format. This would be popped into the Custom HTML tag and would look a little something like: The above option is great if you have one query string for your search term, but what if you had a URL that triggered two query strings - for example: https://www.example.com/search?q=searchterm&category=all Would you need to amend the code something like the below: Any help would be much appreciated! Cheers, Sean
Intermediate & Advanced SEO | | seanginnaw0 -
Should I use rel=canonical on similar product pages.
I'm thinking of using rel=canonical for similar products on my site. Say I'm selling pens and they are al very similar. I.e. a big pen in blue, a pack of 5 blue bic pens, a pack of 10, 50, 100 etc. should I rel=canonical them all to the best seller as its almost impossible to make the pages unique. (I realise the best I realise these should be attributes and not products but I'm sure you get my point) It seems sensible to have one master canonical page for bic pens on a site that has a great description video content and good images plus linked articles etc rather than loads of duplicate looking pages. love to hear thoughts from the Moz community.
Intermediate & Advanced SEO | | mark_baird0 -
Thousands of 404 Pages Indexed - Recommendations?
Background: I have a newly acquired client who has had a lot of issues over the past few months. What happened is he had a major issue with broken dynamic URL's where they would start infinite loops due to redirects and relative links. His previous SEO didn't pay attention to the sitemaps created by a backend generator, and it caused hundreds of thousands of pages to be indexed. Useless pages. These useless pages were all bringing up a 404 page that didn't have a 404 server response (it had a 200 response) which created a ton of duplicate content and bad links (relative linking). Now here I am, cleaning up this mess. I've fixed the 404 page so it creates a 404 server response. Google webmaster tools is now returning thousands of "not found" errors, great start. I fixed all site errors that cause infinite redirects. Cleaned up the sitemap and submitted it. When I search site:www.(domainname).com I am still getting an insane amount of pages that no longer exist. My question: How does Google handle all of these 404's? My client wants all the bad pages removed now but I don't have as much control over that. It's a slow process getting Google to remove these pages that are returning a 404. He is continuously dropping in rankings still. Is there a way of speeding up the process? It's not reasonable to enter tens of thousands of pages into the URL Removal Tool. I want to clean house and have Google just index the pages in the sitemap.
Intermediate & Advanced SEO | | BeTheBoss0 -
Using comment boxes for building links (the right way)
Some people see this kind of link building as spammy mainly because of automated systems I guess making it spammy. But what if you use your company name linking to your site to indicate who has posted it and then actually contribute some good discussion. A lot of these are no-follow (although I have got it into my head even though they are no follow not passing juice I still think Google counts the link and it does something). So I want to start doing some of this, for example squidoo. Lots of lens with great content that I could quite easily comment on with 50 words+
Intermediate & Advanced SEO | | activitysuper0 -
301 to 404
Hello Everybody, I've got a technical question about server responses. Imagine this scenario: www.domain.com/not-existing-page/ --> 404 & domain.com/not-existing-page/ --> www.domain.com/not-existing-page/ --> 404 I use Wordpress for my websites and I can't seem to be able to configure it (or the server where I have total control) to stop it doing this. Ideally, a non-existent url should return 404 instantly, not first redirect to the "corect" url and then return 404. Anyone experiencing this and can help? Here's a neat tool that allows you to quickly check server response codes - for those of you who are new to this: http://responsetester.appspot.com/ Much appreciated! Alex
Intermediate & Advanced SEO | | pwpaneuro1 -
Has Anyone Used Boostability?
Looking into Boostabilty as an option for doing SEO for our clients, will still keep SEOmoz and will still be doing SEO for our own company. Has anyone used it or heard things about it? I am very skeptical when it comes to outsourcing SEO and when it comes to any kind of automated SEO but thought I'd ask if anyone had thoughts on it. Thanks, Holly
Intermediate & Advanced SEO | | hwade0 -
Use of the Canonical Tag, Both Internally and Cross Domain
I've seen the cross domain canonical not work at all in my test cases. And an interesting point was brought to my attention today. That point was that in order for the canonical tag to work, the page that you are referencing needs to have the exact same content. And that this was the whole point of the canonical tag, not for it to be used as a 301 but for it to consolidate pages with the same content. I want to know if this is true. Does the page you reference with a canonical tag have to have the same exact content? And what have been your experiences with using the canonical tag referencing another page on a different domain that has the same exact subject matter but not the exact duplicate content?
Intermediate & Advanced SEO | | GearyLSF372