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
-
Local Versus National SEO - Considerations
I have a customer who is currently a local business but with aspirations of franchising and becoming a national concern, historically I have had quite a lot of success in the Local space, but this will be the first national account so I am looking for any advice on SEO best practice for national businesses. Particularly I am looking at where the business will have a common set of products / services but will have multiple trading addresses / service areas. Any advice would be much appreciated. TIA
Web Design | | Excal1 -
Https Implementation - Weird Redirection After Putting 's' in http://
Hi Mozers, I have come across some websites with their https version going to a totally different website. For example, http://www.samplesite1.com will load fine but when the protocol is changed to https (https://www.samplesite1.com) it will go to a total different domain say, https://www.samplesite2.com How does this happen, in technical sense? In the warning from browser, it says the the security certificate is from the other website but I would like to understand how this happens and how it impacts SEO. I seem to be not able to understand the relationship of this error and SEO impact. Thanks in advance for your response. Malika
Web Design | | Malika10 -
Tips on finding the right Senior Designer / Design Director
Hello Everyone, I manage a fairly large educational website that we are looking to completely redesign to improve the overall site user experience and usability. In the past I, a non-designer, business person, would just roughly draw how I thought the site should look and our developer (who is good, but not a web designer) would just try his best to make everything look profession. Over the years, it has become painfully obvious that we need to invest in more design expertise and move towards a modern, smartly designed website. So my question: Where are the best places to find good freelance designers? I have of course conducted web searches, browsed elance, and asked my network for referrals. However, I am finding that most of the really good ones, ones who have to ability to take charge and lead us through this entire process, and who have at least a basic understanding of SEO principles, work for larger integrated development shops who also expect their people to develop the new site as well. We already have a developer and are primarily looking for the design expertise. Does anyone in the Moz community have any suggestions or even referrals? Thanks! Eric
Web Design | | Eric_R0 -
Image with 100% width/height - bad ranking?
Hi, we have some articles like this: http://www.schicksal.com/Orakel/Freitag-13 The main image has a width of 100% and a height of 100%. Today, I've discovered that GWT Instant Preview has some troubles with rendering the page. We have CSS rules to deliver the image with the right dimensions. If a bot like google is not sending any screen height / width we assume the screen size is 2560x1440. Does this harm the ranking of the page? (Content starts below the fold/image) What is a "default" screen size for google? How do they determine if something is "above the fold"? Any tips or ideas? Best wishes, Georg.
Web Design | | GeorgFranz0 -
/index.php/ What is its purpose and does it hurt SEO?
Hello Moz Forum, I am still in the process of cleaning up the lack of attention to detail and betrayal set by our soon to be ex-SEO company. You can see a previous question I ask regarding betrayal SEO. I am analyzing every page on our website and i am noticing this /index.php/ in most of our URLs. We want to leave our expression engine cms and convert to wordpress. I have been reading about index.php but most of it is over my head for now. What does concern me is the "layman's" findings i am seeing through analytics. Our main domain has two URLs. one that ends in .com and the other ends in .com/index.php/ The one that ends in .com has a higher page rank than the ladder. And there are other internal pages with the same two variations. Can someone please explain to me what is /index.php/ ? what are the benefits of it? what are the cons? What will happen to my site once we move to wordpress? As always, your comments and suggestions are greatly appreciated.
Web Design | | CamiloSC0 -
Should I create a microsite or will 301 be sufficient?
We have a client http://www.shedfinders.com/, new site and we are slowly building DA & PA for. However they have another domain industrialpropertyscotland (one of the keywords they want to rank for) Should we create a little microsite attached to the main site - Say "Your guide to buying industrial property in Scotland" or should we just stick to a 301 redirect and keep working on the main Shedfinders site? Thanks, Laura
Web Design | | lauratagdigital0 -
Http://www.domain.com/services/city or http://www.domain.com/city
Hi, I have a website created on a WordPress Platform. My site is in the "Service" industry and we perform the same service for many different "cities." My question pertains to the Navigation Bar and SEO. Is it better to have a "Service" tab on the navigation bar - that has sub navigation that lists all the cities on a drop down menu. When this happens the URL string looks like http://www.domain.com/service/city The other choice would be to create individual TABS on the NAV bar, by doing this the URL string would look - http://www.domain.com/city . I could be wrong, but I am assuming the http://www.domain.com/city is better than http://www.domain.com/services/city for SEO purposes, ....if I am correct is there a way to make SUB Menu URLS appear as http://www.domain.com/city ? Any input as always would be appreciated best regards, Jimmy
Web Design | | jimmy02251 -
Wordpress/ Insert Tables/ SEO
I'm using Wordpress to create websites and blogs. I have limited (non-existent) HTML Coding knowledge. I'm looking to insert tables within my pages with information. Inside of these tables I want certain names to link to another page with more specific information about that name. I'm using a plugin called "WP Tables Reloaded" it simple helps you to create aesthetically pleasing tables without needing to know HTML Code or CSS. The issue is... when you create this table and insert it to the post, the only thing that shows on the sites back-end page is the table I.D. and the only thing that shows in the HTML is the tables I.D. It looks like this... [table id=2 /] I don't think search engines will be able to crawl this table, thus I won't be receiving any credit for the links being used within the table. Am I right about this?
Web Design | | AndySolo0