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. Http:// to https:// 301 or 302 redirect

    Http:// to https:// 301 or 302 redirect

    Technical SEO Issues
    7 6 284
    • 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.
    • FOTF_DigitalMarketing
      FOTF_DigitalMarketing last edited by

      I've read over the Q & A in the Community, but am wondering the reasoning behind this issue.

      I know - 301's are permanent and pass links, and 302s are temporary (due to cache) and don't pass links. But, I've run across two sites now that 302 redirect http:// to https://.

      Is there a valid reason behind this? From my POV and research, the redirect should 301 if it's permanent, but is there a larger issue I am missing?

      1 Reply Last reply Reply Quote 1
      • RobertFisher
        RobertFisher last edited by

        Mike, 
        This is a really interesting question. The assumption is they are wanting a user to access the site securely every time. I cannot think of a reason for this not to be 301. I am assuming it is not from a single error page or other "event." I am guessing that someone within the Moz community will have an answer; it may be that they are doing it incorrectly.

        Best

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

          http://www.jasonsamuel.com/2011/03/07/how-to-properly-use-ssl-redirects-without-getting-certificate-error-messages/

          It doesn't totally answer it I don't think, but it may shed light onto the issue.  It could be a server specific/site specific kind of need as to why they are doing this.

          FOTF_DigitalMarketing 1 Reply Last reply Reply Quote 1
          • FOTF_DigitalMarketing
            FOTF_DigitalMarketing @DJ123 last edited by

            Thanks for that article. I've always thought it to be a hard and fast rule that 301s should be used over 302. But the more I've run into https:// (with very brilliant IT guys), they always use 302s.

            I've always wanted to understand the implications behind using 302s from the IT perspective - because from an optimization perspective, there is normally no doubt a 301 should be used.

            Thank you.

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

              I am not sure what big IT gurus think before they add 302 over 301 but if you ask me I have a simple rule that I apply before deciding which redirection to use.

              -          Obviously there is no hard and fast rule that you should use 301 over 302 redirections.

              -          Always keep it simple, you need to flow the link juice to the next page, go for 301 and if you don’t go with 301.

              Hope this helps!

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

                301 permanent redirect. Its the best solution and google too likes it.

                hope it helps

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

                  Our IT guys do the same with our sites and they have no good reason for doing it.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  • Proper 301 redirect code for http to https
                    TimHolmes
                    TimHolmes
                    0
                    2
                    23.4k

                  • 301 Redirecting http to https
                    Heydarian
                    Heydarian
                    0
                    3
                    663

                  • Http -> https redirections / 301 the right way
                    Andy.Drinkwater
                    Andy.Drinkwater
                    0
                    4
                    61

                  • How to change 302 redirect from http to https
                    davedon
                    davedon
                    0
                    4
                    2.1k

                  • How bad is it to have duplicate content across http:// and https:// versions of the site?
                    RG_SEO
                    RG_SEO
                    0
                    4
                    155

                  • Google showing https:// page in search results but directing to http:// page
                    JaneCopland
                    JaneCopland
                    0
                    4
                    218

                  • To 301 redirect or not to 301 redirect? duplicate content problem www.domain.com and www.domain.com/en/
                    Chris-CA
                    Chris-CA
                    0
                    5
                    456

                  • Http:// vs http://www.
                    fun52dig
                    fun52dig
                    0
                    8
                    474

                  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