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. Weird 404 URL Problem - domain name being placed at end of urls

    Weird 404 URL Problem - domain name being placed at end of urls

    Intermediate & Advanced SEO
    8 5 3.2k
    • 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.
    • Jay328
      Jay328 last edited by

      Hey there.

      For some reason when doing crawl tests I'm finding pages with the domain name being tacked on the end and causing 404 errors. 
      For example:  http://domainname.com/page-name/http://domainname.com

      This is happening to all pages, posts and even category type

      1. Site is in Wordpress
      2. Using Yoast SEO plugin

      Any suggestions?

      Thanks!

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

        Hey Jay —

        Where're you doing these crawl tests? Does Google Webmaster and Moz both show these errors?

        Also, is there a remote chance something is wrong in the sitemap.xml?

        — Andrew

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

          I've run the crawl tests in Screaming Frog and Moz. Webmaster tools is finding these errors as well.  The sitemap is clean and void of these URLS which is strange.

          Just to clarify- All the old urls are fine such as http://domainname.com/page-name .  They've all been duplicated with http://domainname.com/page-name/http://domainname

          KeriMorgret MikeRoberts 2 Replies Last reply Reply Quote 0
          • KeriMorgret
            KeriMorgret @Jay328 last edited by

            It's often an internal link that's a bit screwed up that will cause this to happen. Look for a missing colon in http:, or something like that.

            1 Reply Last reply Reply Quote 1
            • MikeRoberts
              MikeRoberts @Jay328 last edited by

              I had this problem in Wordpress about a year ago. In my case it was caused by links being entered into posts getting turned into relative links instead of being absolute links. Somehow this was causing the links to append the domain name to the end of the url. In our case it turned out to be an incompatibility between plugins. Have you tested all your plugins to see if any of them are interfering and causing this issue?

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

                I found the main culprit!   There was a sitewide link in the footer that had incorrect html formatting.  Instead of http://domainname.com, it was incorrectly inserted as domainname.com.

                Thanks for the help!

                AndrewAtMGXCopy Food-Garden 2 Replies Last reply Reply Quote 1
                • AndrewAtMGXCopy
                  AndrewAtMGXCopy @Jay328 last edited by

                  grats!

                  1 Reply Last reply Reply Quote 0
                  • Food-Garden
                    Food-Garden @Jay328 last edited by

                    Hey Jay,

                    Can you tell me, how you found the incorrect html? I am having the exact same problem, as you did back then, but I don't know where to look. I am having two sites, both Wordpress and build over the same theme, but one has a lot of 404 errors according to Moz and Webmastertools. The other one doesn't.

                    It's it driving me crazy!

                    Thanks!

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • Domain name in URL
                      Lollo23
                      Lollo23
                      0
                      6
                      51

                    • When I crawl my website I have urls with (#!162738372878) at the end of my urls
                      Matt16
                      Matt16
                      0
                      3
                      44

                    • What is the Redirect Rule for corresponding https urls to new domain with the same https urls?
                      WSIDW
                      WSIDW
                      0
                      2
                      62

                    • Domain Name
                      MoosaHemani
                      MoosaHemani
                      0
                      5
                      96

                    • Domain.com/old-url to domain.com/new-url
                      Edzjus333
                      Edzjus333
                      0
                      10
                      162

                    • Summarize your question.Irrelevant Domain Name, relevant page name
                      ZephSnapp
                      ZephSnapp
                      0
                      2
                      257

                    • Can Anybody Link to my URL to Hurt SEO? Weird URL pointing at my Domaine!
                      danatanseo
                      danatanseo
                      0
                      2
                      411

                    • What Should I Do With My URL Names?
                      Vizergy
                      Vizergy
                      0
                      7
                      371

                    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