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. Canonical tags and relative paths

    Canonical tags and relative paths

    Technical SEO Issues
    4 2 1.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.
    • peeveezee
      peeveezee last edited by

      Hi,

      I'm seeing a problem with Roger Bot crawling a clients site. In a campaign I am seeing you say that the canonical tag is pointing to a different URL.

      The tag is as follows:-

      /~/Standards-and....etc

      Google say:- relative paths are recognized as expected with the tag. Also, if you include a <base> link in your document, relative paths will resolve according to the base URL

      Is the issue with this, that there is a /~/, that there is no <base> link or just an issue with Roger?

      Best regards,

      Peter

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

        I think the problem is that if you include the /~/ as part of the URL, no page resolves, it just forwards automatically to http://www.lantra.co.uk/. The relative url should be just "/standards-and-qualifications.aspx".

        Is there a particular reason you're using relative urls instead of absolute? They seem an odd choice for canonical.

        peeveezee 1 Reply Last reply Reply Quote 0
        • peeveezee
          peeveezee @Tompt last edited by

          Hi Tompt

          Yes that's what I had eventually concluded. The developer says this was caused by an upgrade to the cms.

          The choice of url relates to the structure of the site the client seems to want, at this stage, anyway.

          Thank you for your time and trouble, most appreciated.

          Tompt 1 Reply Last reply Reply Quote 0
          • Tompt
            Tompt @peeveezee last edited by

            Sorry it was a bit late to help.

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            • Canonical tag refers to itself (???)
              Masoko-T
              Masoko-T
              0
              5
              329

            • Canonical tag problem
              jesse-landry
              jesse-landry
              0
              4
              116

            • Canonical tag or 301
              TomRayner
              TomRayner
              0
              4
              146

            • Duplicate Title Tags and Meta Desc even with the correct Canonical Tag
              bhalverson
              bhalverson
              0
              5
              809

            • Notice - canonical tag
              KeriMorgret
              KeriMorgret
              1
              3
              297

            • Canonical tags
              paulbaguley
              paulbaguley
              0
              13
              910

            • Rel-canonical tag
              Dan-Petrovic
              Dan-Petrovic
              0
              3
              709

            • Canonical Tag
              Theo-NL
              Theo-NL
              0
              3
              865

            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