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. How do i actually use the canonicalization rule for Apache?

    How do i actually use the canonicalization rule for Apache?

    Technical SEO Issues
    2 2 45
    • 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.
    • oiljob
      oiljob last edited by

      Hi Guys,

      Moz is reporting lots of duplicate content on my site. I think this is partly from session id's and partly from category pages and on-site search generated pages.  I know I have to use the canonicalization rule but don't know exactly how to determine the correct URL and where to put the code.  Can anyone offer any advice on this?  I'm new to this so apologies for any etiquette breaching etc.

      Many thanks, Stewart.

      1 Reply Last reply Reply Quote 0
      • Chris.Menke
        Chris.Menke last edited by

        Stewart,

        The canonicalization tag identifies the URL where the one true version of content can be found.  The tag used on the one true version AND all on the copies of the true version are exactly same tag because the copies will point to the true version and the true version will point to itself.  Often the version you're going to set as the one true version is that which has the shortest URL or the one without any parameters added to the end of it.

        The whole purpose of the canonicalization tag is to be able to say "Hey Google, I know I have a bunch of URLs that have the same content--I know it's not ideal but there's nothing I can do about that. So what I want you to do is only count this specific URL in your index so all the others don't count against me as duplicate content."

        Here's more detail on the topic: Canonicalization and the Canonical Tag - Learn SEO - Moz

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        • Hi, we are wanting to test a new version of one particular page on our website. What's the best way to run a test for a week without harming rankings. Do we use a 302 redirect or direct 100% of traffic using a tool like Optimizely?
          WebElaine
          WebElaine
          0
          2
          33

        • Canonicalize or Block?
          yaelslater
          yaelslater
          0
          5
          53

        • Using a 302 redirect for language variants. How should I use the canonical?
          GPainter
          GPainter
          0
          4
          50

        • JSON-LD meta data: Do you have any rules/recommendations for using BlogPosting vs Article?
          andystorey
          andystorey
          1
          3
          132

        • Canonical homepage link uses trailing slash while default homepage uses no trailing slash, will this be an issue?
          Deacyde
          Deacyde
          0
          3
          1.3k

        • John Mueller says don't use Schema as its not working yet but I get markup conflicts using Google Mark-up
          adamxj2
          adamxj2
          0
          6
          198

        • Ideally should a 301 or 302 redirect be used from https://www.site.com to http://www.site.com? Is there a valid reason to use a 302 in this situation or would using a 301 have any negative impact on seo?
          Unity
          Unity
          0
          2
          317

        • Is it ok to just use the end of the url when using a Rel Cononical Link?
          rhutchings
          rhutchings
          0
          2
          658

        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