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. Base href + relative link href for canonical link

    Base href + relative link href for canonical link

    Intermediate & Advanced SEO
    2 2 419
    • 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.
    • Nobody1611699043941
      Nobody1611699043941 last edited by

      I have a site that in the head section we specify a base href being the domain with a trailing slash and a canonical link href being the relative link to the domain.

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

      href="link-to-page.html" rel="canonical" />

      I know that Google recommends using an absolute path as a canonical link but is specifying a base href with a relative canonical link the same thing or is it still seen as duplicate content?

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

        Hi there.

        I would say it's not the best way to do it like that. I'm not entirely sure how google would react to this. There are couple way to check it. Basically, google bots are very similar to any other bot, so, you can use, let's say, a facebook debugger, or check your MOZ tools, see what they say. If those tools are saying there are errors, then google most likely will say the same.

        Hope this helps.

        1 Reply Last reply Reply Quote 2
        • 1 / 1
        • First post
          Last post
        • Absolute vs. Relative Canonical Links
          SimpleSearch
          SimpleSearch
          1
          3
          2.7k

        • Rel=canonical and internal links
          unirmk
          unirmk
          0
          3
          379

        • Links from cloud-based software
          themegroup
          themegroup
          0
          5
          98

        • Confusion about forums and canonical links
          FedeEinhorn
          FedeEinhorn
          0
          4
          124

        • Rel Canonical Link on the Canonical Page
          Stew222
          Stew222
          0
          4
          248

        • .GOV Link - same impact on my site's rankings whether link to home or Gov related category?
          BizDetox
          BizDetox
          0
          2
          218

        • Canonical Related question
          KeriMorgret
          KeriMorgret
          0
          4
          230

        • Removing Canonical Links
          Dr-Pete
          Dr-Pete
          0
          3
          418

        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