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. Intermediate & Advanced SEO
    4. Canonical / 301 Redundancy

    Canonical / 301 Redundancy

    Intermediate & Advanced SEO
    4 2 460
    • 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.
    • ahirai
      ahirai last edited by

      Suppose I have two dynamic URLs that lead to the identical page:

      www.example.com/product.php?x=1&y=1

      and

      www.example.com/product.php?y=1

      The x=1 parameter had some historical meaning, but is now unused. All references to the x=1 parameter have been removed from internal links and sitemaps.

      I have implemented two solutions:

      First, the header of www.example.com/product.php?x=1&y=1 includes:

      Second, the .htaccess file includes the following:

      Redirect permanent /product.php?x=1&y=1 http://www.example.com/product.php?y=1

      Questions:

      1. I assume that since canonical is still relatively new, it's best to play it safe and implement both solutions. Is this correct?

      2. When I point my browser to www.example.com/product.php?x=1&y=1, it does NOT redirect to www.example.com/product.php?y=1. The address bar continues to show the non-canonical URL. Is this because the canonical tag somehow takes precedence over the 301 redirect?

      3. How long will Google Webmaster Tools continue to show these as duplicates, even though I've implemeted BOTH canonical and 301? It's been a few weeks and I thought it would have rolled off by now.

      Thanks!

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

        (1) Honestly, I tend not to double-up, if for no other reason that you can't really tell what's work and what isn't. Keep in mind, too, that these tools do have different purposes. 301-redirects impact everyone (users and bots), whereas rel-canonical is only for search. If a 301 is appropriate, then just use a 301.

        (2) If the address bar isn't changing, your 301-redirect isn't working. Test it with a header checker:

        http://tools.seobook.com/server-header-checker/

        A rel-canonical tag will not override browser behavior (at least, not at this point in time).

        (3) It can take weeks to clear, and it sounds like your 301 isn't working right, so that's going to exacerbate the problem. The page has to re-crawl and re-cache, and GWT may still show the message for a couple of weeks after that.

        Personally, I'd drop the canonical and fix the 301-redirect.

        ahirai 2 Replies Last reply Reply Quote 1
        • ahirai
          ahirai @Dr-Pete last edited by

          Dr. Pete,

          Thanks for the very helpful answer. I've gotten rid of the rel-canonical tag for this part of the site and I'll try to figure out what's up with the 301s.

          BTW, I listened to the recorded version of your "future proofing" webinar this morning and learned a lot.

          Akira

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

            Note to self, and to others who see this thread later, the 301 for this situation is:

            RewriteCond %{QUERY_STRING} x=([0-9]+)&y=([0-9]+)

            RewriteRule ^product.php$ http://www.example.com/product.php?y=%2 [r=301,nc]

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • How to 301 Redirect /page.php to /page, after a RewriteRule has already made /page.php accessible by /page (Getting errors)
              DirkC
              DirkC
              0
              2
              435

            • Domain Authority... http://www.domain.com/ vs. http://domain.com vs. http://domain.com/
              MattAntonino
              MattAntonino
              0
              4
              136

            • Canonicals question ref canonicals pointing to redundant urls
              AndyMacLean
              AndyMacLean
              0
              4
              99

            • Https://www.mywebsite.com/blog/tag/wolf/ setting tag pages as blog corner stone article?
              AlirezaHamidian
              AlirezaHamidian
              0
              6
              135

            • URL Redirect: http://www.example.net/ vs. http://www.example.net
              dotfly
              dotfly
              0
              2
              705

            • 301 redirect with /? in URL
              Aleyda
              Aleyda
              0
              5
              736

            • Redirect 301 or Canonical.
              Matt-Williamson
              Matt-Williamson
              0
              6
              246

            • 301 or 302 - www.yoursite.com/uk/content
              AlanMosley
              AlanMosley
              0
              7
              982

            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