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. Rel=Canonical on a page with 302 redirection existing

    Rel=Canonical on a page with 302 redirection existing

    Technical SEO Issues
    7 3 2.3k
    • 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.
    • sjcbayona-41218
      sjcbayona-41218 last edited by

      Hi SEOMoz!

      Can I have the rel=canonical tag on a URL page that has a 302 redirection? Does this harm the search engine friendliness of a content page / website?

      Thanks!

      Steve

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

        If you want your page to be search engine friendly you have only two options:

        1. Change 302 redirect to 301 redirect and pointing it to the correct page.

        2. If 301 is not possible then remove the 302 redirect and just keep canonical tag pointing to the correct page

        sjcbayona-41218 1 Reply Last reply Reply Quote 0
        • sjcbayona-41218
          sjcbayona-41218 @Webmaster_SEO last edited by

          Hi AnkitMaheshwari,

          Reason why there's a 302 in the home page URL because the website appends session id's. The best compromise I could think of is to implement a rel=canonical on the home page URL minus the session id i.e. www.website.com

          Dr-Pete sjcbayona-41218 4 Replies Last reply Reply Quote 0
          • Dr-Pete
            Dr-Pete @sjcbayona-41218 last edited by

            So, it's something like this?

            www.example.com?id=12345

            (1) canonical to -> www.example.com

            (2) 302-redirect to -> www.example.com

            Is the 302 intended so that visitors don't bookmark the ID'ed version? The problem is that the 302 is essentially telling Google to leave link-juice at the ID'ed URL, while the canonical is telling Google to consolidate link-juice to the root URL. I think I get your intent, but it's a mixed signal to the search engines. In this case, I do think that a 301 is the way to go, unless I'm misunderstanding.

            1 Reply Last reply Reply Quote 0
            • sjcbayona-41218
              sjcbayona-41218 @sjcbayona-41218 last edited by

              Hi Dr. Pete!

              Sorry to confuse everyone but it is actually like this:

              {What is happening right now}

              (1) www.example.com > 302 redirects to > www.example.com?id=12345

              {What I think I could recommend as a solution}

              (2) What I intend to do is put rel=canonical on www.example.com as the developers from the client side says it is not technically feasible on their platform to remove the session id on the home page url.

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

                Oh, sorry, it's a session ID, not a tracking/affiliate sort of ID. Honestly, the best solution is to avoid URL-based session IDs entirely, and store it in a cookie or session variable, but yeah, I realize that's not always feasible.

                In this case, the 302-redirect should help keep link-juice at the root URL, and is probably a good bet. I think adding the canonical tag to the parameterized versions is a good backup, though. You could also block that parameter in Google Webmaster Tools, since it really has no search value at all.

                1 Reply Last reply Reply Quote 1
                • sjcbayona-41218
                  sjcbayona-41218 @sjcbayona-41218 last edited by

                  Thanks for help confirming that I have the right compromise solution Dr. Pete! Yep, I am going to that as well on GWT. Only problem is that it takes those dev's months to put in the html file so I could verify it.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  • Rel=canonical and redirect on same page
                    nhhernandez
                    nhhernandez
                    1
                    2
                    112

                  • Rel=Canonical For Landing Pages
                    SoulSurfer8
                    SoulSurfer8
                    0
                    10
                    1.1k

                  • Rel Canonical for the Same Page
                    Alick300
                    Alick300
                    0
                    3
                    988

                  • Effect of 302 redirects from empty parent page to sub page
                    driftingbass
                    driftingbass
                    0
                    3
                    294

                  • 302 Redirects for Minor Pages
                    theLotter
                    theLotter
                    0
                    3
                    394

                  • On-Page Report Card, rel canonical
                    Breakout
                    Breakout
                    0
                    8
                    1.1k

                  • Rel canonical or 301 the Index Page?
                    KeriMorgret
                    KeriMorgret
                    0
                    8
                    1.4k

                  • Is a 302 redirect the correct redirect from a root URL to a detail page?
                    KeriMorgret
                    KeriMorgret
                    0
                    7
                    1.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