Skip to content
    Moz logo Menu open Menu close
    • Products
      • Moz Pro
      • Moz Pro Home
      • Moz Local
      • Moz Local Home
      • STAT
      • Moz API
      • Moz API Home
      • Compare SEO Products
      • Moz Data
    • Free SEO Tools
      • Domain Analysis
      • Keyword Explorer
      • Link Explorer
      • Competitive Research
      • MozBar
      • More Free SEO Tools
    • Learn SEO
      • Beginner's Guide to SEO
      • SEO Learning Center
      • Moz Academy
      • SEO Q&A
      • Webinars, Whitepapers, & Guides
    • Blog
    • Why Moz
      • Agency Solutions
      • Enterprise Solutions
      • Small Business Solutions
      • Case Studies
      • The Moz Story
      • New Releases
    • Log in
    • Log out
    • Products
      • Moz Pro

        Your all-in-one suite of SEO essentials.

      • Moz Local

        Raise your local SEO visibility with complete local SEO management.

      • STAT

        SERP tracking and analytics for enterprise SEO experts.

      • Moz API

        Power your SEO with our index of over 44 trillion links.

      • Compare SEO Products

        See which Moz SEO solution best meets your business needs.

      • Moz Data

        Power your SEO strategy & AI models with custom data solutions.

      NEW Keyword Suggestions by Topic
      Moz Pro

      NEW Keyword Suggestions by Topic

      Learn more
    • Free SEO Tools
      • Domain Analysis

        Get top competitive SEO metrics like DA, top pages and more.

      • Keyword Explorer

        Find traffic-driving keywords with our 1.25 billion+ keyword index.

      • Link Explorer

        Explore over 40 trillion links for powerful backlink data.

      • Competitive Research

        Uncover valuable insights on your organic search competitors.

      • MozBar

        See top SEO metrics for free as you browse the web.

      • More Free SEO Tools

        Explore all the free SEO tools Moz has to offer.

      What is your Brand Authority?
      Moz

      What is your Brand Authority?

      Check yours now
    • Learn SEO
      • Beginner's Guide to SEO

        The #1 most popular introduction to SEO, trusted by millions.

      • SEO Learning Center

        Broaden your knowledge with SEO resources for all skill levels.

      • On-Demand Webinars

        Learn modern SEO best practices from industry experts.

      • How-To Guides

        Step-by-step guides to search success from the authority on SEO.

      • Moz Academy

        Upskill and get certified with on-demand courses & certifications.

      • SEO Q&A

        Insights & discussions from an SEO community of 500,000+.

      Unlock flexible pricing & new endpoints
      Moz API

      Unlock flexible pricing & new endpoints

      Find your plan
    • Blog
    • Why Moz
      • Small Business Solutions

        Uncover insights to make smarter marketing decisions in less time.

      • Agency Solutions

        Earn & keep valuable clients with unparalleled data & insights.

      • Enterprise Solutions

        Gain a competitive edge in the ever-changing world of search.

      • The Moz Story

        Moz was the first & remains the most trusted SEO company.

      • Case Studies

        Explore how Moz drives ROI with a proven track record of success.

      • New Releases

        Get the scoop on the latest and greatest from Moz.

      Surface actionable competitive intel
      New Feature

      Surface actionable competitive intel

      Learn More
    • Log in
      • Moz Pro
      • Moz Local
      • Moz Local Dashboard
      • Moz API
      • Moz API Dashboard
      • Moz Academy
    • Avatar
      • Moz Home
      • Notifications
      • Account & Billing
      • Manage Users
      • Community Profile
      • My Q&A
      • My Videos
      • Log Out

    The Moz Q&A Forum

    • Forum
    • Questions
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. Home
    2. Digital Marketing
    3. Web Design
    4. Redirects (301/302) versus errors (404)

    Moz Q&A is closed.

    After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

    Redirects (301/302) versus errors (404)

    Web Design
    6
    6
    4358
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with question management privileges can see it.
    • proptiger
      proptiger last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • Cyrus-Shepard
        Cyrus-Shepard last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • Esaky
          Esaky @GeorgeAndrews last edited by

          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 !

          1 Reply Last reply Reply Quote 0
          • GeorgeAndrews
            GeorgeAndrews last edited by

            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 :).

            Esaky 1 Reply Last reply Reply Quote 2
            • MoosaHemani
              MoosaHemani Banned last edited by

              Ok, here is the easiest way to understand this (As far as I think)!

              1. 404: This is the status code that browser give when the page on the website is not available.
              2. 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.
              3. 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.

              1 Reply Last reply Reply Quote 2
              • Richard555
                Richard555 last edited by

                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

                1 Reply Last reply Reply Quote 2
                • 1 / 1
                • First post
                  Last post

                Got a burning SEO question?

                Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                Start my free trial


                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.

                • See all categories

                Related Questions

                • NachoRetta

                  Spanish website indexed in English, redirect to spanish or english version if i do a new website design?

                  Hi MOZ users, i have this problem. We have a website in Spanish Language but Google crawls it on English (it is not important the reasons). We re made the entire website and now we are planning the move. The new website will have different language versions, english, spanish and portuguese. Somebody tells me that we have to redirect the old urls (crawled on english) to the new english versions, not to the spanish (the real language of the firsts). Example: URL1 Language: Spanish - Crawled on English --> redirect to Language English version. the other option will be redirect to the spanish new version, which the visitor is waiting to find. URL1 Language: Spanish - Crawled on English --> redirect to Language Spanish version. What do you think? Which is the better option?

                  Web Design | | NachoRetta
                  0
                • jwanner

                  How long should an old site redirecting to a new site remain activated on a server?

                  Once I switch a site to a new domain (with links to corresponding/relative pages), will I have to keep the old site live forever for those links to work, or how long should I wait before I inactivate the old site on our server?

                  Web Design | | jwanner
                  0
                • Jseddon92

                  How to split organic traffic for A/B testing

                  This might be a silly questions as I may be missing something completely obvious here, but we are completely new to A/B testing. Our site doesn't receive a phenomenal amount of traffic although we are looking to set up some A/B testing for our popular products. Is there a way to split organic traffic for a specific product page. I'm aware that we need to experiment which one performs better in Analytics but I'm unsure how to redirect 50% of the organic traffic.

                  Web Design | | Jseddon92
                  0
                • KevinBloom

                  Multiple websites for different service areas/business functions?

                  I'm wondering what the implications are for having multiple domains for different service areas of a company? I realize having multiple domains for one company can be troublesome because of the possibility of duplicate content, keyword cannibalization, and linkbuilding to multiple domains. But when the domains are for very different service offerings/unique business functions that each serve  their own purpose (and have  different positionings), is there a downside to having more than one domain? Any thoughts would be appreciated!

                  Web Design | | KevinBloom
                  0
                • DA2013

                  Is there a way to redirect URLs with a hash-bang (#!) format?

                  Hi Moz, I'm trying to redirect www.site.com/locations/#!city to www.site.com/locations/city. This seems difficult because anything after the hash character in the URL does not make it to the server thus cannot be parsed for rewriting. Is there an SEO friendly way to implement these redirects? Thanks for reading!

                  Web Design | | DA2013
                  0
                • soobumim

                  Wordpress - redirecting tags

                  I just ran a webmaster tool from Yoast SEO premium and notice I have a lot of problems with tags (restricted-robots-txt) For example : http://www.soobumimphotography.com/tag/wedding-group-photo/ Do I have to redirect to http://www.soobumimphotography.com/wedding-group-photo/ Should I do this to each and every posts Thank you

                  Web Design | | soobumim
                  0
                • edlondon

                  Is it possible to redirect the main www. domain - but keep a subdomain active?

                  Hi Mozzers, Quick question, which I hope one of you can answer... Let's say I have a website (i) www.example.com and on that a subdomain exists, (ii) subdomain.example.com. Let's say I want to change my main domain from www.example.com to www.newwebsite.com.  I'd 301 all content, use GWT to notify Google of a change of address etc etc. Having done that, is it still possible to keep the original subdomain active? So, even though www.example.com has been redirected / transferred to www.newwebsite.com, subdomain.example.com would still exist. If that is possible, what is the implication for Domain Authority?  On the one hand, I have transferred the main site (so DA from that will transfer to the new site); but part of that root domain is still active. Make sense?  Any answers? Thanks everyone...

                  Web Design | | edlondon
                  0
                • hfranz

                  Parked Domain or Redirect

                  Should I park a domain or Redirect? And what is the best way? I need to switch our domain name. I currently have all of our domains redirecting to our main website. I have set up there own hosting in our cpanel account so I could redirect them to our main domain. Was this too many steps? I tried putting all of our domains in our main domains, .htaccess file, and redirected them to our main website, but they did not work. So that is why I set up there own cpanel accounts. Now they work fine. However, my hosting company told me that I could just park the domain on our current domains account.  If I can redirect all of these domain in one place, that would be great. I thought that a parked domain is considered duplicate websites, as both urls work, displaying the entire website with both urls. So Would I have to re upload our entire website to the account that I want as our main domain? Or is there another way of going about doing this?

                  Web Design | | hfranz
                  0

                Get started with Moz Pro!

                Unlock the power of advanced SEO tools and data-driven insights.

                Start my free trial
                Products
                • Moz Pro
                • Moz Local
                • Moz API
                • Moz Data
                • STAT
                • Product Updates
                Moz Solutions
                • SMB Solutions
                • Agency Solutions
                • Enterprise Solutions
                Free SEO Tools
                • Domain Authority Checker
                • Link Explorer
                • Keyword Explorer
                • Competitive Research
                • Brand Authority Checker
                • MozBar Extension
                • MozCast
                Resources
                • Blog
                • SEO Learning Center
                • Help Hub
                • Beginner's Guide to SEO
                • How-to Guides
                • Moz Academy
                • API Docs
                About Moz
                • About
                • Team
                • Careers
                • Contact
                Why Moz
                • Case Studies
                • Testimonials
                Get Involved
                • Become an Affiliate
                • MozCon
                • Webinars
                • Practical Marketer Series
                • MozPod
                Connect with us

                Contact the Help team

                Join our newsletter
                Moz logo
                © 2021 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                • Accessibility
                • Terms of Use
                • Privacy

                Looks like your connection to Moz was lost, please wait while we try to reconnect.