The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

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

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. On-Page / Site Optimization
    4. How to fix 404 Errors - Page No Longer Exists

    How to fix 404 Errors - Page No Longer Exists

    On-Page / Site Optimization
    4 3 3.0k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • UnderMe
      UnderMe last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • littlesthobo
        littlesthobo last edited by

        You need to identify all the pages that are producing the 404 error, i.e. the pages that no longer exist.

        After that you need to put a 301 redirect to that of a customer clicks on that link you have redirected the page to something similar (if that product no longer exists).  So you are linking

        example.com/oldpage

        to

        example.com/neworappropriatepage

        I'm not sure if there's a nice easy way to do in Magento, but if you google 301 redirect magento you should find some good information.

        Hope that helps.

        1 Reply Last reply Reply Quote 1
        • loaf1011
          loaf1011 last edited by

          Hi James,

          Once you have a list of pages that are returning the 404 error, you just need to setup 301 redirects to the correct page for each broken link. A 301 redirect is a permanent redirection, telling search engines that the page no longer exists, and it should point all visitors (and link juice!) to the new location that you specify.

          The easiest way to do this is via FTP. You can edit your .htaccess file on your server by simply adding the following code:

          Redirect 301 /oldpage.html http://www.yourwebsite.com/correctpage.html

          ...you'll need one of those lines for each page that is 404'ing. This should go at the top of your .htaccess file, and should be one line for each error.

          Hope that helps!

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

            Thanks guys for your help.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Increasing in 404 errors that doesnt exist
              meysamzare711236541
              meysamzare711236541
              0
              9
              68

            • How can I fix multiple 404 errors with Wildcard htaccess redirect
              Taiger
              Taiger
              0
              12
              4.3k

            • 404 errors on page urls that don't even exist
              JoelDay
              JoelDay
              0
              6
              152

            • 404 Error to homepage
              mememax
              mememax
              0
              5
              138

            • Source page leading to a 404 pages in reports
              mandinga
              mandinga
              0
              5
              402

            • How to fix duplicate page content and page titles?
              prospects
              prospects
              1
              3
              403

            • Creating New Pages Versus Improving Existing Pages
              RyanKent
              RyanKent
              0
              5
              798

            • How do I fix a 404 with a 301
              KeriMorgret
              KeriMorgret
              1
              6
              1.2k

            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
            • Digital Marketers
            Free SEO Tools
            • Domain Authority Checker
            • Link Explorer
            • Keyword Explorer
            • Competitive Research
            • Brand Authority Checker
            • Local Citation 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 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
            • Accessibility
            • Terms of Use
            • Privacy