The Moz Q&A Forum

    • Forum
    • Questions
    • 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 Forum
    2. Categories
    3. Digital Marketing
    4. Web Design
    5. Correct Canonical Reference

    Moz Q&A is closed.

    After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

    Correct Canonical Reference

    Web Design
    8 3 1.4k
    • 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.
    • dimanyc
      dimanyc last edited by

      Aloha,

      This is probably a noob question, but here we go:

      I got a CMS e-commerce, which does not allow static "rel=canonical" declaration in the header and can only work with third-party modules (xml packages) that append "rel=canonical" to all pages dynamic pages within the URL. As a result, I have pages I'm declaring incomplete rel="canonical" as such:

      Instead of:

      rel="canonical" src="www.domainname.com/category.aspx"

      I get:

      rel="canonical" src="/category.aspx"

      Coincidentally (or not), after the implementation of the canonical tag, pages that were continuously increasing in rankings started dropping, and, within a week, disappeared from the index completely.

      Could the drop be a result of my canonical links pointing to incomplete URLs? If so, by fixing this issue, do I stand a chance of recovering my pages' SERPs?

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

        It's possible that the canonical timing was just a coincidence and something deeper is going on, but I look at it this way - if it's easy to fix, fix it, and then you'll know for sure. It can be really tough to separate technical indexation problems from penalties.

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

          Absolutely!

          What gets me wondering is that only two pages have been removed from the index and do not appear in 1-1000 search results, others just dropped in rankings. Maybe, the two "most optimized" pages with most content and links got most "attention" from Google and got removed first.

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

            Sorry, I could've sworn they recommended not using relative paths somewhere, but now I can't find that reference. I'd just make doubly sure they're resolving correctly. Given that these pages disappeared completely from the index, it's hard to believe the canonical tag addition was just an accident. You always have to start with what you know, and you know this changed.

            dimanyc Dr-Pete 2 Replies Last reply Reply Quote 0
            • dimanyc
              dimanyc last edited by

              Thanks for the link!

              It says that canonical CAN be a relative path, and that Google will relate the path the the base URL _(section:"Can I use a relative path to specify the canonical, such as ?"). _

              I will be posting my results here. Let's see if pages get re-indexed and recovered in SERPs. Hope this helps someone who is have a similar issue.

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

                I haven't specifically tested the impact of relative URLs, but to the best of my knowledge, all canonical tags should be absolute URLs (including "http://"). I would've figured Google would just ignore the incomplete tags, at worst, but it's certainly possible they're attributing them incorrectly.

                Since you know you made the change and that they pages have de-indexed, I'd definitely fix the issue, even if it's on a few test pages (not sure how difficult the implementation is).

                One note - this is probably just a typo in your question, but it's href="", not src="" in the canonical tag. Google's reference page on the tag is actually pretty good:

                http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html

                1 Reply Last reply Reply Quote 1
                • dimanyc
                  dimanyc @mytouchoftech last edited by

                  As I mentioned, right after the implementation, some of the landing pages I optimized disappeared from the index completely, some began dropping.

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

                    Can you check to make sure those pages are still indexed by Google?  If the pages that were indexed are no longer indexed, then your canonical links have interfered with the ranking.

                    dimanyc 1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post

                    Got a burning SEO question?

                    Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                    Start my free trial


                    Explore more categories

                    • Moz Tools

                      Chat with the community about the Moz tools.

                      Getting Started
                      Moz Pro
                      Moz Local
                      Moz Bar
                      API
                      What's New

                    • SEO Tactics

                      Discuss the SEO process with fellow marketers

                      Content Development
                      Competitive Research
                      Keyword Research
                      Link Building
                      On-Page Optimization
                      Technical SEO
                      Reporting & Analytics
                      Intermediate & Advanced SEO
                      Image & Video Optimization
                      International SEO
                      Local SEO

                    • Community

                      Discuss industry events, jobs, and news!

                      Moz Blog
                      Moz News
                      Industry News
                      Jobs and Opportunities
                      SEO Learn Center
                      Whiteboard Friday

                    • Digital Marketing

                      Chat about tactics outside of SEO

                      Affiliate Marketing
                      Branding
                      Conversion Rate Optimization
                      Web Design
                      Paid Search Marketing
                      Social Media

                    • Research & Trends

                      Dive into research and trends in the search industry.

                      SERP Trends
                      Search Behavior
                      Algorithm Updates
                      White Hat / Black Hat SEO
                      Other SEO Tools

                    • Support

                      Connect on product support and feature requests.

                      Product Support
                      Feature Requests
                      Participate in User Research

                    • See all categories

                    • How to Add canonical tags on .ASPX pages?
                      Ryan-Bradley
                      Ryan-Bradley
                      0
                      6
                      4.9k

                    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

                    Looks like your connection to Moz was lost, please wait while we try to reconnect.