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 & HTTPS

    HTTP & HTTPS

    Technical SEO Issues
    5 4 167
    • 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.
    • JonsonSwartz
      JonsonSwartz last edited by

      what is best recommended when some of the pages on site goes from HTTP to HTTPS: 301 redirection or 302 redirection?
      and why?

      thank you

      I was asked to elaborate so:

      on my website I have open account pages. users are asked to fill the details. those page are secured and are HTTPS. the problem is that the whole website turned to HTTPS so they redirected most of the pages from HTTPS to HTTP.
      the secured pages are redirected from HTTP to HTTPS.

      I wanted to check if it's correct and what is the best redirection way (301 or 302)

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

        I think you may need to elaborate a little on your question as to why the page goes from http to https ie for a cart checkout etc?

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

          In my mind the answer is complicated and depends a lot on your site structure and how your cms or website handles https.

          Case in point, if you go to a https page on your site and all of the links pointing out from that page are to https pages, but the pages are redirected to http pages I would consider that bad. The way some sites are written, they just use the same protocol that the current page uses no matter what, so you would have to redirect the links on the page to the non secure pages, I would use a 302 in that instance. At the same time if it is possible I would see if this can be corrected, because it is not proper. The same happens a lot going from non-secure to secure with some platforms as well.

          This site has an example  of what I mean. http://junglejumparoo.com/product/jungle-jumparoo/  If you add the product to the cart, then hover over the checkout button, it is http, but clicking it redirects you to https. Then on the next page, if you mouse over the menu, you will notice that all of the links are https now. That is handling ssl incorrectly, but in that case I would use a 302 redirect I guess.

          Doing the redirect is a quick fix, but as a long game I would try to fix the issue itself and not do a redirect.

          1 Reply Last reply Reply Quote 2
          • BlueprintMarketing
            BlueprintMarketing last edited by

            The answer is 301 redirect however you would ideally like your chosen and page either non-www.or www.so

            https://example.com

            Or

            https://www.example.com

            To be a 200

            Here is an example of  an HTTPS:// website and the headers it returns when run through this tool that will give you your answer.

            http://www.feedthebot.com/tools/headers/test.php

            The site I am referencing is using www. so I put the URL with the www.the tool referenced below the headers it will give me a 200 okay

            HTTP/1.1 200 OK

            Server: nginx

            Date: Tue, 17 Jun 2014 15:38:47 GMT

            Content-Type: text/html; charset=UTF-8

            Connection: keep-alive

            Vary: Accept-Encoding

            If I put the same URL from the same website into this tool but do not include www.

            I receive this

            HTTP/1.1 301 Moved Permanently

            Server: nginx

            Date: Tue, 17 Jun 2014 15:39:53 GMT

            Content-Type: text/html

            Keep in mind you will get a lot more information but you are really should only care about what it says after HTTP/1.1

            Useing

            http://www.feedthebot.com/tools/headers/test.php

            Like the others though I am concerned as to how you are going to make this change.

            What company are you buying the SSL certificate from? What is your hosting company? Many times these things are implemented via the hosting, load balancer, WAF etc.

            There are so any ways to implement https://

            that in less you elaborate a little bit more on your server architecture for instance if you could tell me for using a CMS in your hosting company that would be a big step in the right direction.

            Are you using load balancers?

            Are using a WAF

            or CDN to carry the SSL Cert?

            I strongly suggest you reference this information about redirection

            http://moz.com/learn/seo/redirection

            This great blog post by Cyrus Shepard

            http://moz.com/blog/save-your-website-with-redirects

            SSL if you are familiar with Regex I would strongly recommend taking a look at this great information provided by WP engine that can be used on WordPress platforms in addition to other platforms as well.

            http://wpengine.com/support/regex/#ssl

            If you are using a WAF (I do not recommend CloudFlare regardless I know that you would be using a similar tactic shown here depending on the WAF or cloudproxy)

            https://support.cloudflare.com/hc/en-us/articles/200172286-How-do-I-do-url-forwarding-with-CloudFlare-

            sincerely,

            Thomas

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

              It could be this easy

              http://kb.sucuri.net/cloudproxy/Configuration/how-to-enable-SSL

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post
              • Desktop in http and mobile in https
                brettmandoes
                brettmandoes
                0
                6
                91

              • Do you still loose 15% of value of inbound links when you redirect your site from http to https (so all inbound links to http are being redirected to https version)?
                LoganRay
                LoganRay
                0
                5
                74

              • Bigcommerce only allows us to have https for our store only, not the other pages on our site, so we have a mix of https and http, how is this hurting us and what's the best way to fix?
                aarongray
                aarongray
                0
                2
                178

              • Mass HTTP to HTTPs move
                Clickmetrics
                Clickmetrics
                0
                8
                172

              • HTTPS vs HTTP
                kwoolf
                kwoolf
                0
                4
                570

              • Pro's & contra's: http vs https
                max.favilli
                max.favilli
                0
                9
                377

              • Switching to HTTPS from HTTP
                DennisSeymour
                DennisSeymour
                0
                3
                82

              • I have a site that has both http:// and https:// versions indexed, e.g. https://www.homepage.com/ and http://www.homepage.com/. How do I de-index the https// versions without losing the link juice that is going to the https://homepage.com/ pages?
                fthead9
                fthead9
                0
                3
                729

              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