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

    Base href

    Technical SEO Issues
    2 2 414
    • 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.
    • nvs.nim
      nvs.nim last edited by

      I'm having a discussion with a third party that's building a website for a client that I advised concerning his SEO.

      The site went live 2 weeks ago and it's not getting indexed very well, so my client asked me what could be the problem.

      I checked several things that could be the problem, like an xml sitemap that was missing etc. But there was another thing that I saw in the source code:

      <base href="http://www.domain.com/">

      Can this be a problem for Google to follow internal links? I always thought that you should use the base href like this:

      <base href="http://www.domain.com"> so without the trailing / behind the TLD

      And even better using absolute instead of relative links, no?

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

        I suggest looking through previous Q&A forum results for various answers that have been provided for this question. Here's the query to find them: https://www.google.com/search?q=seomoz+base+href.

        Basically, you are right, you should use absolute links instead of relative links. You only need to use a base href if you are using relative URLs on page and the base href is needed for them to resolve correctly.

        The base href you are seeing in the code shouldn't be causing any issues for Google when following internal links. The issues, if any, would be caused by the relative links themselves if they are not set up correctly (this should be easily tested).

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        • Canonical URLs on location based offers
          alekaj
          alekaj
          2
          3
          88

        • Does using data-href="" work more effectively than href="" rel="nofollow"?
          Everett
          Everett
          0
          3
          18.1k

        • Wiki/Knowledge bases
          Cocoonfxmedia
          Cocoonfxmedia
          0
          3
          144

        • Weird href - is it still a follow link?
          RBenedict
          RBenedict
          0
          3
          312

        • Location Based Content / Googlebot
          MoosaHemani
          MoosaHemani
          0
          5
          1.2k

        • Www or not www base url
          waqid
          waqid
          0
          6
          565

        • Value of key word based URL
          ZiaTG
          ZiaTG
          0
          4
          416

        • Entry based content and SEO
          Audiohype
          Audiohype
          0
          2
          590

        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