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. How to fix HTTP/HTTPS duplicate content

    How to fix HTTP/HTTPS duplicate content

    Technical SEO Issues
    3 2 276
    • 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.
    • adamxj2
      adamxj2 last edited by

      I recently installed an SSL certificate on the site: https://libertywholesalesupply.com

      Moz is now reading thousands of duplicate content pages because it is reading both http and https. I set up the configuration in Magento to auto-redirect the base URL, created a permanent redirect for the URL in the SEO settings, and adjusted the canonical settings.

      What am I missing??

      1 Reply Last reply Reply Quote 0
      • David-Kley
        David-Kley last edited by

        Do you have access to the root folder of your site? Try adding this into your HTACCESS

        #Redirect your Homepage from HTTPS to HTTP

        RewriteCond%{HTTPS} on
        RewriteRule^$ http://%{HTTP_HOST} [L,R]

        If that does not work, try adding this below the Rewritebase line:

        RewriteCond %{HTTPS} off
        RewriteRule (?!^(index.php/?|..css|..js|..gif|..jpe?g|..png|..txt|.*.ico|)$)^ https://%{HTTP_HOST}%{REQUEST_URI} [R=302,L]

        RewriteCond %{HTTPS} on
        RewriteRule ^(index.php/?|..css|..js|..gif|..jpe?g|..png|..txt|.*.ico|)$ http://%{HTTP_HOST}%{REQUEST_URI} [R=302,L,NC]

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

          Thanks David

          I already had the redirect set up in the htacces file. I think the site was crawled before I had added this to the file…total "occam's razor" moment 🙂

          But now there is a few thousand duplicates because of the /catalogue /search etc… I disallowed that all in the robots file so now just have to wait another week!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • How bad is it to have duplicate content across http:// and https:// versions of the site?
            RG_SEO
            RG_SEO
            0
            4
            155

          • What is the better way to fix duplication https and http?
            CleverPhD
            CleverPhD
            0
            5
            162

          • WordPress - How to stop both http:// and https:// pages being indexed?
            Dr-Pete
            Dr-Pete
            0
            4
            1.9k

          • Fixing Duplicate Pages Titles/Content
            TylerReardon
            TylerReardon
            0
            2
            229

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

          • How do I fix Duplicate Content/Title going to memberlist.php page?
            john4math
            john4math
            0
            2
            1.3k

          • 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

          • New website branding, differences between http://www and http://
            PathInteractive
            PathInteractive
            1
            10
            1.3k

          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