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
        • Dynamic referenced canonical pages based on IP region and link equity question
          DmitriiK
          DmitriiK
          0
          4
          41

        • WooCommere Canonical links relating to products and subscriptions
          0
          2
          44

        • Canonicals Passing Link Juice?
          MikeRoberts
          MikeRoberts
          1
          3
          284

        • Unpaid Followed Links & Canonical Links from Syndicated Content
          JaneCopland
          JaneCopland
          0
          3
          100

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

        • What is the difference between link rel="canonical" and meta name="canonical"?
          Ideas-Money-Art
          Ideas-Money-Art
          0
          3
          1.3k

        • Canonical Tag and Affiliate Links
          KT684
          KT684
          0
          6
          1.8k

        • Is having a canonical tag for the link that IS the canonical a negative thing?
          DanDeceuster
          DanDeceuster
          0
          2
          813

        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