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. Base HREF set without HTTP. Will this cause search issues?

    Base HREF set without HTTP. Will this cause search issues?

    Technical SEO Issues
    5 3 2.1k
    • 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.
    • Nebraska
      Nebraska last edited by

      The base href has been set in the following format:

      <base href="//www.example.com/">

      I am working on a project where many of the programming team don't believe that SEO has an impact on a website. So, we often see some strange things. Recently, they have rolled out an update to the website template that includes the base href I listed above. I found out about it when some of our tools such as Xenu link checker - suddenly stopped working.

      Google appears to be indexing the the pages fine and following the links without any issue - but I wonder if there is any long term SEO considerations to building the internal links in this manner?

      Thanks!

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

        Is that code on every page or just the homepage?

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

          They have put it on every page. The programming manager is quick to point out that according to W3C neither http nor https are required for proper links. I have just never seen anyone purposely make all internal links begin with double slashes (//). It certainly makes xenu die, but I am not sure if there is any downside other than xenu and a few other tools not working.

          Thanks!

          Dr-Pete 1 Reply Last reply Reply Quote 0
          • Dr-Pete
            Dr-Pete @Nebraska last edited by

            The W3C standards might allow for no protocol, but you would never just put "//" - that's part of the protocol ("http://", "https://", "ftp://", etc.). This usage is technically incorrect. It could cause minor issues on some browsers (although probably not on newer ones).

            Does it matter for SEO? Well, that's a bit trickier. Google tend to ignore base href unless there are ambiguous relative URLs, like canonical tags that have no base URL and are unclear. Practically speaking, it's probably not a huge problem, but it is possible for it to cause issues down the road.

            Either way, if it's on a sitewide template, it's a 5-minute job, and what they have is wrong. I'm not one to knock devs (I've been a dev and I've managed devs), but they need to stop arguing and just fix it.

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

              Thanks for the comment. I was able to get them to make the changes, but I think I have made some new enemies. Oh well, I will move on in a few months anyhow.

              Thanks again,

              Joe

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • We need a bit of help from someone to fix the following issues causing speed issues on our website.
                Andy.Drinkwater
                Andy.Drinkwater
                0
                4
                71

              • Set base-href to subfolders - problems?
                Vivamedia
                Vivamedia
                0
                5
                2.5k

              • How to use internal tracking without causing duplicate content issues
                NSJ78
                NSJ78
                0
                3
                264

              • Does having a page (or site) available on HTTP and HTTPS cause duplication issues?
                Dr-Pete
                Dr-Pete
                0
                8
                632

              • HTTP Compression -- Any potential issues with doing this?
                MWM3772
                MWM3772
                0
                7
                520

              • I have a site that has both http:// and https:// versions indexed, e.g. https://www.homepage.com/ and http://www.homepage.com/. How do I de-index the https// versions without losing the link juice that is going to the https://homepage.com/ pages?
                fthead9
                fthead9
                0
                3
                729

              • What should I set my domain setting to?
                MikeGracia
                MikeGracia
                0
                5
                892

              • Duplicate content issues caused by our CMS
                jsturgeon
                jsturgeon
                0
                3
                948

              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