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. On-Page / Site Optimization
    4. Website accessible on http and https. Is it bad?

    Website accessible on http and https. Is it bad?

    On-Page / Site Optimization
    6 5 662
    • 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.
    • CyrilWilson
      CyrilWilson last edited by

      We noticed that our website is accessible on:

      http://www.example.com and

      https://www.example.com

      Both the versions have page rank of 4.

      Though on https version we have added canonical tag indicating http:// version as preferred.

      Is this fine or we need to use 301 redirect and let the site be accessible only on http:// version??

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

        Yes 301 is my preferred way to deal with this.

        If you can use

        **if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') {
        echo ''. "\n";
        }**
        

        REF: http://www.seobook.com/archives/001714.shtml

        It is a very common issue, https is needed for sensitive info, but Search Engines don't t need to access.

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

          Hi Cyril, a 301 redirect would be preferable to a canonical link in this case.

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

            Cyril - I honestly wouldn't worry about this. The vast majority of sites with https behave like this and it doesn't cause a problem.  Your canonical is extra protection against it.

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

              Depends, If you have secure login system on your website then you cannot put 301 on https because in that case user might not be able to access the login area.

              Adding canonical is fine and you can also restrict from crawling by adding it in to Robots.txt file.

              CyrilWilson 1 Reply Last reply Reply Quote 2
              • CyrilWilson
                CyrilWilson @MoosaHemani last edited by

                Yes as we are an eCommerce site, we have login and cart pages as secure. So as per the responses received so far, we should not worry about it.

                -The canonical element is already there for protection

                • Adding no index or restricting through robots can be added precaution

                Thanks everyone for the reply!

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • No index for http version of website
                  effectdigital
                  effectdigital
                  0
                  3
                  53

                • How To Avoid Redirect Chains When Switching From http to https
                  BWiseContractors
                  BWiseContractors
                  0
                  5
                  750

                • Optimizing images on website. Is it bad to use the same alt names and keywords?
                  paints-n-design
                  paints-n-design
                  0
                  4
                  280

                • How do i know about my website content quality is good or bad?
                  Christy-Correll
                  Christy-Correll
                  0
                  6
                  2.2k

                • Can you reference http and https in a sitemap.xml?
                  RoxBrock
                  RoxBrock
                  0
                  3
                  124

                • How do you treat http/https and slashes at the end of a site?
                  JaneCopland
                  JaneCopland
                  0
                  2
                  118

                • Do https sites rank as well as http sites?
                  JustinClark
                  JustinClark
                  0
                  4
                  145

                • Getting access to clients websites for onsite seo
                  AeronInc
                  AeronInc
                  0
                  2
                  634

                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