Redirects (301/302) versus errors (404)
-
I am not able to convincingly decide between using redirects versus using 404 errors. People are giving varied opinions. Here are my cases
1. Coding errors - we put out a bad link
a. Some people are saying redirect to home page; the user at least has something to do PLUS more importantly it does NOT hurt your SEO ranking.
b. Counter - the page ain't there. Return 404
2. Product removed - link1 to product 1 was out there. We removed product1; so link1 is also gone. It is either lying in people's bookmarks, OR because of coding errors we left it hanging out at some places on our site.
-
To add to what George says....
Google often tries to crawl pages that don't exist - simply to make sure they aren't missing anything on your site. When a page is clearly broken, you want to communicate this to Google by serving a 404 (but you can make it a friendly 404)
Here's what Googler John Mueller has to say:
What about the funky URLs that are “clearly broken?” When our algorithms like your site, they may try to find more great content on it, for example by trying to discover new URLs in JavaScript. If we try those “URLs” and find a 404, that’s great and expected. We just don’t want to miss anything important (insert overly-attached Googlebot meme here)."
Google expects to find 404s on your site. When they don't find 404s for links that should be broken, this sends confusing signals and could cause crawl problems.
I recommend reading this entire article - it's one of the most helpful I've ever read on the subject: http://googlewebmastercentral.blogspot.ch/2011/05/do-404s-hurt-my-site.html
As for expired products - as George said it's best to 301 them, usually to a category level page.
-
I have similar issue, Recently Google blocked my blog for Google Adsense then after removing two to five articles, now they are online.
But now i get more 404 error for that page. I removed from the blog, I drafted them, in case if google not allowed the ads, i will re-publish it.
Now i have to remove the post link from the search results and from cPanel i can redirect to the home page
Their Page Authority is 25-30 respectively ! Plz advice me !
-
Richard and Moosa are right, use a friendly 404 page to help your users when they reach a page that can no longer be found. Simply redirecting them to the home page doesn't fix the issue of the missing page. Here's an old, but relevant, post on the subject: http://www.seomoz.org/blog/personalizing-your-404-error-pages.
For your second issue, if you've permanently moved to a new product page, you should certainly 301 redirect to not only pass on all the link juice from the old page, but also to provide the best user experience for your customers - they were looking for the product so give them the new improved page :).
-
Ok, here is the easiest way to understand this (As far as I think)!
- 404: This is the status code that browser give when the page on the website is not available.
- 302: This is the status code of the page if it is temporary redirected to some new page. This simply means that old page will not pass the link juice to the new page but when user reach to this URL will drive them to a new location.
- 301: This is the status code which does almost the same work as 302 but in that case old URL passes its link juice as well. This is commonly known as permanent redirection.
Websites usually should not use 404 as this disturbs the user experience of the page but upon requirement and keeping scenarios in mind use of 301 or 302 is always an intelligent approach.
-
Hi For 1: I would suggest a custom friendly 404 page. This means the user sees a page saying something like 'Sorry the product / page you were after no longer exists. Here are some useful options ( then list a handful of popular page links). You could even includes a site search or your tel number / email to contact. This means the user knows what has hppened, had somewhere useful to go but it returns a 404. For 2: If the page is being moved - use a 301 redirect on the existing page. If you are simply not selling that product anymore than do a 404 as above. In both cases monitor your GA and GWT for 404s and fix where applicable. All the best. Richard
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
-
How do I find why I have a 302 redirect?
I have a 10 year old website and I have just recently changed to a https: version and my host ionos setup a 301 redirect. I have noticed on my Moz reports that as well as a 301 redirect there is also a 302. How do I find why I have a 302 redirect? I have looked in my htaccess file and it says:- RewriteCond %{SERVER_PORT} 80
Web Design | | Ast9858
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L] I'm assuming this is the 301 redirect, where will I find the 302 redirect. Please note that I am using Wordpress that was not setup through ionos. Does anyone know where a 302 redirect could also be installed or how I find why its there or where its coming from? Thanks Andrew0 -
Site redesign - 301 Redirects
I've just overhauled a website, leaving lots of former posts in the dust. I've set up a 404 redirect to the home page so that if anyone goes to one of those old pages they land on the home page instead of a dead 404. But, there's a couple urls from the old site I'd prefer to redirect to similar pages. These urls have forward slashes and I don't know how to get the slashes in when I copy it over to the new site. This is probably something easy, but I'm baffled. This www.lawbarron.com/personal-injury/whip-its-nitrous-oxide/ becomes this when I copy it www.lawbarron.com/personal-injury-whip-its-nitrous-oxide Can someone help me out?
Web Design | | julie-getonthemap0 -
Could a redirecting a homepage mess with seo? if so is there any documentation you could point me too? Thanks!
I have a global page for our site but the global site has the exact same content as the main navigation personal page. If I redirect /index to /personal how much seo damage are we doing?
Web Design | | Miguelquirarte0 -
301 Redirect all pictures when moving to a new site?
We have 30,000 pictures on our site. Moz will return 404's on some occasionally, but Google seems to ignore those. Should I 301 redirect all those images when we move to a new site lay-out? Appreciate your views!
Web Design | | Discountvc0 -
Rich snippets tool/ schemer.org update?
We have a domain in the netherlands that shows stars (rich snippets) in adwords and in the organic search results. As we do the the in rich snippets test tool we see some errors as shown in the attachments, the errors are shown in review aggregate - but stars are stil shown in paid and organic search. Do we need to follow-up these errors? Do they influence ranking - or the stars in the near future? Z0fCKRW
Web Design | | remkoallertz1 -
Geo Targeting for a City / State - is it possible?
What are the best ways to geo-target for a specific city? (Please share your top 5 ways to do so)
Web Design | | HMCOE0 -
Word Press Seo Errors/ Questions
Hi my name is Tina I am new here I hope you guys can help me out. I thought building my new site with Word Press was going to simplify things, however I have a ton of errors, and I am not sure what they are, or how to fix them. I am hoping someone could share with me a solution for these errors. I have 28 rel=canonical errors, I am not sure what this means, I understand it to mean my pages are similar, and this is to set a heirarchy between my pages. Please correct me if I am wrong. If I am correct would this be necessary to add if my main keyword was "widgets" and my home page was optimized for "widgets" and my next page was "blue widgets" and so on. While my pages are similar they are all optimized for different versions of my main keyword some using long tail keywords. Do you know of a plugin that can help solve this problem? Also does anyone have a plugin they recommend for G+ my G+ authorship verification is causing an error as well? I am using Head Space 2 I have used this seo plugin numerous times with great success it has been my favorite seo plugin. However, we have a portfolio that shows our clients websites, and on those pages Head Space will not let me enter a description tag. What plug in do you guys recommend with more control over each page? Another interesting issue is on one of our pages I optimized it for our Canadian clients, and now every page has been listed in Google.ca for the keywords it should have on Google.com. We are listed on Google maps, verified in Google places, and our address is on the site so they know we're from the USA however, the majority of our keywords are only listed in Google.ca. We're on page one for all of them, we are in the top three on most of them so that's not bad, but we want to be listed in Google.com as well. Any suggestions on this?
Web Design | | TinaGammon1 -
What is the current thought how/if cufon affects keywords?
What is the final opinion about how (and if) cufon affects keywords in H1 tags?
Web Design | | Court_LOQUA0