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. Intermediate & Advanced SEO
    4. Do you add 404 page into robot file or just add no index tag?

    Do you add 404 page into robot file or just add no index tag?

    Intermediate & Advanced SEO
    5 4 13.7k
    • 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.
    • Rubix
      Rubix last edited by

      Hi,

      got different opinion on this so i wanted to double check with your comment is.

      We've got /404.html page and I was wondering if you would add this page to robot text so it wouldn't be indexed or would you just add no index tag? What would be the best approach?

      Thanks!

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

        Hi Sida,

        I would add a noindex to the page and as you also will return the 404 status code this is enough data for Google to tell not to index the page itself.

        Hope this answers your question.

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

          Thanks Martijn,

          I actually want to know what would you do for the 404 page itself. It is something like:

          www.mainurl.com/404.html and for some reason this started to create some other links such as

          www.mainrul.com/404.html?aspxerrorpath=/contact-office.aspx

          Do you think I should add 404 page and subpages to Robot.txt ?

          Thanks!

          1 Reply Last reply Reply Quote 0
          • Saijo.George
            Saijo.George last edited by

            404 are OK on your site just make sure you send the proper 404 header response for the 404 page ... Google does NOT index 404 pages ( as long as it sends the 404 header response ) , so you don't need to block them via robots.txt or meta robots.

            Infact GWT warns you about these if they are able to crawl the so called 404 pages that doesn't send a 404 header response , so I think its a good idea NOT to noindex them you will get the warning if something is wrong.

            Google will only index your 404 if you don't do that..they call it soft 404 : https://support.google.com/webmasters/answer/181708?hl=en

            worth reading : http://moz.com/learn/seo/http-status-codes

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

              Hello Rubix,

              Saijo gave you some great advice, but I'm concerned about the fact that you have that page in the first place, and that it produces those URL parameters. It suggests to me that instead of showing a 404 error on the contact-office.aspx page (assuming that pages doesn't exist on that URL) you are redirecting the user who tries to access that URL to the /404.html page (e.g. /404.html?aspxerrorpath=/contact-office.aspx).

              Typically you want the 404 http status code to show on the URL the user is trying to unsuccessfully access. In this case instead of redirecting them to your "404 page URL" you would want to show your customized 404 message (and ensure it returns a 404 status code, use this tool) on www.yourdomain.com/contact-office.aspx.

              I hope this makes sense to you. If not, feel free to ask for clarification.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • MOZ is showing that I have non- indexed blog tag posts are they supposed to be nonindexed. My articles are indexed just not the blog tags that take you to other similar articles do I need to fix this or is it ok?
                Tyler5891
                Tyler5891
                0
                3
                21

              • Site moved. Unable to index page : Noindex detected in robots meta tag?!
                effectdigital
                effectdigital
                0
                4
                1.7k

              • Is robots met tag a more reliable than robots.txt at preventing indexing by Google?
                Bobbi_Tschumper
                Bobbi_Tschumper
                1
                7
                3.0k

              • How do we decide which pages to index/de-index? Help for a 250k page site
                julie-getonthemap
                julie-getonthemap
                0
                2
                63

              • Should We Add the W3.org Language Tag To Every Page Or Just The Home Page?
                gfiorelli1
                gfiorelli1
                0
                4
                101

              • 404 with a Javascript Redirect to the index page...
                JusinDuff
                JusinDuff
                0
                3
                2.1k

              • Sitemaps index file and internal pages
                SanketPatel
                SanketPatel
                0
                2
                454

              • Should I index tag pages?
                Daylan
                Daylan
                0
                2
                727

              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