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. Impact of SSL - switching from http: to https: on organic rankings?

    Impact of SSL - switching from http: to https: on organic rankings?

    Intermediate & Advanced SEO
    3 3 1.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.
    • seagreen
      seagreen last edited by

      Hello,

      just paranoid, but thought i'd ask.  We are installing an SSL certificate on a site ranking very well organically in all the engines.  This will change our site from http:// to https://.  Is there an risk to our rankings in doing so?

      What might I need to consider?  Changing my htaccess redirects to https: instead of http;?  Any ripple effects from switching to a secure site?

      Thanks,
      Greg

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

        Yes, you should configure your site so that the HTTPS version does not get crawled by the search engines. One way is to do it via .htaccess but another way is to automatically insert a canonical tag to all of the HTTPS versions so the search engines know not to crawl and index the secure versions. Here's a snippet of code that I've used before -

        $currenturl= $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];

        //Check if it is using the secure https port which is 443
        if ($_SERVER["SERVER_PORT"] == “443″) {

        //connected to secure port, formulate the http canonical version
        $canonicalversion=”http://”.$currenturl;

        //echo the canonical version to the HTML as link rel canonical tag

        echo ‘’;
        }
        ?>

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

          What's your plan for the new pages?  Are you going to support both http and https browsing of your site for all pages?  If so Streamline Metrics answer is spot on.

          Or are you switching all your pages from http to https?  Do realize that having all secure pages means the browsers won't be able to cache anything from page to page, and makes page sizes slightly larger, so your page load times will suffer for every page view.  This is a major reason why most sites are non-secure for as many pages as possible, and are only secure for pages that need it.  I'd strongly consider doing this, or supporting both http and https (with canonical tags) if possible.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • We are redirecting http and non www versions of our website. Should all versions http (non www version and www version) and https (non www version) should just have 1 redirect to the https www version?
            BlueprintMarketing
            BlueprintMarketing
            0
            8
            437

          • HTTP vs HTTPS duplication where HTTPS is non-existing
            Joe_Stoffel
            Joe_Stoffel
            0
            2
            75

          • How will canonicalizing an https page affect the SERP-ranked http version of that page?
            BlueprintMarketing
            BlueprintMarketing
            0
            4
            85

          • Http > https Switch Before Platform Migration?
            DonnaDuncan
            DonnaDuncan
            0
            6
            86

          • Should I use https schema markup after http-https migration?
            admiral99
            admiral99
            0
            3
            1.1k

          • Switching from Http to Https, but what about images and image link juice?
            becole
            becole
            1
            3
            18.8k

          • SEO Impacts if changing from https to http (or viceversa)
            PeteC12
            PeteC12
            0
            6
            136

          • Can converting a site to HTTPS impact ranking?
            dknewmedia
            dknewmedia
            0
            8
            2.2k

          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