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. Moz Tools
    4. Weird 404 Errors

    Weird 404 Errors

    Moz Tools
    9 6 229
    • 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.
    • G2W
      G2W last edited by

      Hi All,

      Although my Moz error scans have been pretty clean for a while, a law firm site I manage recently cropped up with 80+ 404 errors since the last scan.

      I'm a little baffled as the url it shows being returned looks like this:

      http://www.yoursite.com/ http://www.yoursite.com/resource.html

      For some reason it seems to be initiating a query to call the root domain twice before the actual resource.

      I installed ModX Revolution 2.2.6-PL on the site in question, and am hoping a canonical plugin I just started using will take care of these.

      Has this happened to anyone else? What did you do to solve the issue?

      Thanks for your time and any tips!

      1 Reply Last reply Reply Quote 0
      • brad.s.knutson
        brad.s.knutson last edited by

        %0A is the line feed character, so it looks like your CMS may be spitting out links that browsers and crawls interpret as relative links.

        If your link appears like this:

        [The link will be interpreted as relative and result in the link that you found on your Moz error report.

        It's probably a problem with how the CMS is spitting out the href attribute, but it's hard to say without knowing more information.](%0Ahttp://www.yoursite.com/resource.html)

        seoagnostic 1 Reply Last reply Reply Quote 1
        • seoagnostic
          seoagnostic @brad.s.knutson last edited by

          Bradley's response is spot on. I coincidentally manage a large site in the legal area that has had errors like yours although the error isn't law related! As Bradley implies, this is typically the unintended result of code that is spitting out the unintended line feed in the CMS. I'm guessing that what you're seeing is probably the result of something related to PHP rather than an error in user input. Typically entering white space into user editable areas will result in it being stripped. When you have actual code like this inserted, it's the result of some line of PHP someone edited and saved without realizing the effect. I've had this happen before with RSS feeds where one little glitch will put a forward slash to the end of a URL and connect the beginning of another. Good luck with finding the solution, which shouldn't bee too tough.

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

            Yes, I have seen this problem before. Bradley and Michael are both correct in that it had something to do with relative versus absolute URLs. In our case, it was being caused because we had relative URLs in all of our canonical tags. As soon as we fixed them to absolute URLs the strange looking 404 errors went away. Hope that helps!

            1 Reply Last reply Reply Quote 0
            • Christy-Correll
              Christy-Correll last edited by

              Hi David, were you able to resolve this issue?

              G2W 1 Reply Last reply Reply Quote 0
              • G2W
                G2W @Christy-Correll last edited by

                Hey Christy,

                Nope, Never did figure out an answer!

                I took a break for a while but now I'm back trying to divine a solution.

                Re: Dana's suggestion, I did make sure that our canonical plugin was using absolute urls, but it looks as though that did not solve the issue.

                Not sure how to locate a potential PHP glitch that might be causing this... any pointers?

                1 Reply Last reply Reply Quote 0
                • Christy-Correll
                  Christy-Correll last edited by

                  Hi David, I apologize for the delayed reply. I'm going to check with some other Associates and see if they can help trouble-shoot. In the meantime, please let us know if you have any updates. Thanks! (Christy)

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

                    Hi David

                    I would recommend cross checking this with Screaming Frog and/or Webmaster Tools. It's only a concern really if the web spiders and users are experiencing these 404's. I have seen it happen where Moz's crawler may hit 404's that Google and/or users do not.

                    If you get the errors in Screaming Frog or Webmaster Tools as well - here's what you need to do to fix them.

                    1. Go to the source page of one of the broken links.
                    2. View the HTML source.
                    3. Do a control-F and search for the broken link (have it copied to your clipboard)
                    4. Determine where in the code it's coming from.
                    5. Then you can probably debug it from there.

                    Let us know if that gets you there.

                    Thanks!

                    -Dan

                    G2W 1 Reply Last reply Reply Quote 0
                    • G2W
                      G2W @evolvingSEO last edited by

                      Hey Dan,

                      I had kind of assumed that it might be a false alarm from the Moz scan. I typically use Xenu to check for broken links periodically and it hasn't shown any.

                      Thanks for the tip!

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      • Moz-Specific 404 Errors Jumped with URLs that don't exist
                        effectdigital
                        effectdigital
                        0
                        18
                        200

                      • 18 404 errors on pages that are actually fine.
                        BlueprintMarketing
                        BlueprintMarketing
                        0
                        8
                        200

                      • 404: Error - MBP Ninja Affiliate
                        0
                        1
                        110

                      • I Redirected all the 404 Error page to other pages - many new errors are occuring
                        Esaky
                        Esaky
                        0
                        3
                        313

                      • 54 new 404 errors on my website?
                        ChiarynMiranda
                        ChiarynMiranda
                        0
                        3
                        353

                      • How to run down the actual source of a 404 error that is reported.
                        KeriMorgret
                        KeriMorgret
                        0
                        3
                        372

                      • High level of 404 client errors
                        anthonydnelson
                        anthonydnelson
                        0
                        2
                        280

                      • 404 errors in SEOMoz crawl tool
                        Mark_Jay_Apsey_Jr.
                        Mark_Jay_Apsey_Jr.
                        0
                        2
                        410

                      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