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. Where does rel=canonical go? One file that manages sort order, view, filters, etc...

    Where does rel=canonical go? One file that manages sort order, view, filters, etc...

    Technical SEO Issues
    3 2 71
    • 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.
    • ErnieB
      ErnieB last edited by

      Where do I put the rel=canonical when the search.cfm (using URL re-write) page is the one and only page, just using url parameters to control sort, filter, view, etc.

      Do I just put the rel=canonical at the top of the search.cfm page?  The duplicate content issues I am getting are:

      • https://www.domain.com/tx/austin/
      • https://www.domain.com/tx/austin/?d=25&h=&s=r&t=&v=l&a=

      Just want to be clear since Moz Pro is picking up both URL's but it's only really one file, search.cfm

      Thanks in advance for your help.

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

        Hi Ernie,

        In your case, I would put on the page "domain.com/tx/austin".

        This will ensure that any URL parameters added after the URL, will still load the canonical tag that was placed.

        Hope this helps.

        Jac

        ErnieB 1 Reply Last reply Reply Quote 1
        • ErnieB
          ErnieB @jactang12 last edited by

          If we are using dynamic coding so that the search results page is just one page of code for ALL cities, then I assume that we need to just add dynamic logic at the top of the page for the tag to be dynamic based on the city URL in the URL, right?

          Then when this one page loads for any city and any url parameter, it will just be custom, for example:

          URL: domain.com/tx/austin?urlparameters.....
          LINK: domain.com/tx/austin

          URL: domain.com/ca/los-angeles?urlparameters.....
          LINK: domain.com/ca/los-angeles

          Is that correct?  This will just be dynamic logic in our codebase on the one template?

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • No Follow & Rel Canon for Product Filters
            Remke
            Remke
            0
            5
            40

          • Submitting a new sitemap index file. Only one file is getting read. What is the error?
            mm916157
            mm916157
            0
            4
            416

          • Does all in one seo pack still have a rel canonical issue?
            Christy-Correll
            Christy-Correll
            0
            2
            258

          • Rel=Canonical Help
            rock22
            rock22
            0
            5
            121

          • Rel=Canonical
            Dr-Pete
            Dr-Pete
            0
            5
            564

          • Rel=canonical issue
            RobertFisher
            RobertFisher
            0
            3
            979

          • Rel=Canonical being ignored?
            Cyrus-Shepard
            Cyrus-Shepard
            0
            2
            509

          • Rel Canonical - Wordpress
            Agentmorris
            Agentmorris
            0
            11
            3.0k

          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