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. On-Page / Site Optimization
    4. Rel="canonical" at the same page

    Rel="canonical" at the same page

    On-Page / Site Optimization
    2 2 61
    • 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.
    • mycostaricalink
      mycostaricalink last edited by

      Hello Everyone!!

      We have a Joomla Site and in the template we have a php function that create the **link rel="canonical" **and in the href inserts the same page url.

      For example, if the we do a search and the url have some cookies. That Url is gonna be the **rel="canonical" **for that page.

      Is it working correctly?

      We need an advice to to set it up correctly!

      Thanks!

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

        The rel="canonical" tag needs to have the URL that you wish to be the primary designated URL. This tells the search engines only to index this version of the URL and no other versions, and it also tells the search engines that links to other versions of the URL need to be counted as pointing to the canonical version.

        So if your page is www.mysite.com/boats.php and you use www.mysite.com/boats.php?utm_medium=adwords, etc. then the canonical tag should be set to www.mysite.com/boats.php so the search engines don't bother messing with the URLs with the parameters in them.

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post
        • Should you do on-page optimization for a page with rel=canonical tag?
          Nigel_Carr
          Nigel_Carr
          0
          2
          28

        • What is the danger of adding rel="prev" and rel="next"...
          SErOb
          SErOb
          0
          2
          129

        • Is it redundant to include a redirect to my canonical domain (www) in my .htaccess file since I already have the correct rel="canonical" in my header?
          jesse-landry
          jesse-landry
          0
          4
          224

        • Which pages should use rel="canonical" links?
          Highland
          Highland
          0
          7
          340

        • Encouraging users to "like" or "+1" our pages
          cbielich
          cbielich
          0
          6
          411

        • Rel="canonical" on home page?
          Dr-Pete
          Dr-Pete
          0
          5
          2.4k

        • Does it matter if a rel = "canonical" element is added to the beginning or the end of a URL?
          Luke22
          Luke22
          0
          4
          974

        • Avoiding "Duplicate Page Title" and "Duplicate Page Content" - Best Practices?
          WesleySmits
          WesleySmits
          5
          29
          17.8k

        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