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. Technical SEO Issues
    4. Should there be a canonical tag on my 404 error page?

    Should there be a canonical tag on my 404 error page?

    Technical SEO Issues
    6 6 7.6k
    • 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.
    • Leighm
      Leighm last edited by

      In my crawl diagnostics, I notice some 4xx client errors. They are appearing for pages that no longer exist, so I'm not sure what the problem is. Shouldn't they just be dealt as 404's?

      Anyway, on closer inspection I noticed that my 404 error page contains a canonical tag which points to the missing page. Could this be the issue? Is it a good idea to remove the canonical tag from this error page?

      Thanks.

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

        Discovering 404s can be useful.

        Is the old page deleted? Why not 301 redirect the URL to an appropriate page elsewhere on your site? Tools such as Screaming Frog's SEO Spider can crawl your website and help you discover 404s. By redirecting the page with a permanent redirect search engines will to pass any link juice the previous page had to the new page. Redirecting will also cleanup your pages in the SERPs and help with any broken internal links on your site (though it'd be better to fix those).

        There's no need to having a rel=canonical tag on a 404 page (but if you do, ensure the tag is for the page itself and not actual content on your site).

        There's also no need for search engines to index your 404 page, so I suggest adding the meta NOINDEX tag to the page.

        Marvo 1 Reply Last reply Reply Quote 1
        • wildnerakademie
          wildnerakademie last edited by

          The canonical tag on errorpages make no sense! For gone webpages just setup a 301 redirect in the .htaccess. And make use of the Google webmaster tools to identify waht Google sees.

          1 Reply Last reply Reply Quote 1
          • Marvo
            Marvo @magicrob last edited by

            If the old pages are NOINDEX, are the old inbound links still passed on to the new page via the 301's. and is the google juice passed?  I've wanted to do exactly what you suggest, but was afraid of severing the Linking credit from those old inbounds.

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

              1 there is no point having canonical on a 404 page. I would say its a very confusing signal to bots

              2 don't always 301. 404 exists for a reason. In most cases I will 301 old pages but there are cases where letting pages 404 is the correct way forward

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

                I repeated this elsewhere, but I think canonical on 404 page does make sense, especially if you consider the following two statements true:

                1. There is a reason for 404s, don't 301 everything
                2. There is no reason to lose the value of someone linking to your page.

                If those 2 statements are true then you should create an individual error page, and then everytime you serve a 404 you should include canonical to that error page. That page should have useful content (explanation of page missing and where you could go), probably a search box, and links to the most valuable content on your site. This satisfies both points.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Should the canonical tag for the redirected pages be changed
                  AnahitG
                  AnahitG
                  0
                  3
                  31

                • NoIndex tag, canonical tag or automatically generated H1's for automatically generated enquiry pages?
                  Kim_Lazaro
                  Kim_Lazaro
                  0
                  3
                  53

                • Removing a canonical tag from Pagination pages
                  WineCellarInnovations
                  WineCellarInnovations
                  0
                  3
                  1.4k

                • After I 301 redirect duplicate pages to my rel=canonical page, do I need to add any tags or code to the non canonical pages?
                  Mike.Goracke
                  Mike.Goracke
                  0
                  2
                  125

                • 404 errors is webmaster - should I 301 all pages?
                  Oxfordcomma
                  Oxfordcomma
                  0
                  5
                  225

                • Index page 404 error
                  Maximise
                  Maximise
                  0
                  3
                  299

                • Two different canonical tags on one page
                  Dr-Pete
                  Dr-Pete
                  0
                  7
                  3.1k

                • Canonical tag in preferred and duplicate page
                  NRMA
                  NRMA
                  0
                  2
                  541

                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