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 redirections / 301 the right way

    Http -> https redirections / 301 the right way

    Technical SEO Issues
    4 2 61
    • 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.
    • Chemometec
      Chemometec last edited by

      Dear mozers,

      Thank you for your time reading the message and wanting to help!

      So, we have moved our WordPress to https and redirected all the content successfully via htaccess file.

      We used a simple 301 redirect plugin, which we are using to redirect old URLs to the new ones.

      The problem today is, the redirections in the plugin are not working for http version. Here is an example:

      htaccess redirect:

      http --> https

      Plugin redirect

      domain.com/old --> domain.com/new

      but, the url http://domain.com/old is not redirecting to https://domain.com/new

      while

      https://domain.com/old does redirects to https://domain.com/new

      What can you suggest as a solution?

      Thank you in advance!

      P.S. I don't think having 2 redirects for each version of the URL is the smartest solution

      Best wishes,

      Dusan

      1 Reply Last reply Reply Quote 0
      • Andy.Drinkwater
        Andy.Drinkwater last edited by

        It sounds to me like a config issue in the .htaccess file. There is no real reason for it not to work otherwise.

        See if you find your solution in here:

        https://www.sslshopper.com/apache-redirect-http-to-https.html or here: http://stackoverflow.com/questions/13977851/htaccess-redirect-to-https-www

        -Andy

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

          Oh, it's solved.

          I forgot to say that we have switched hosting provider. From some reason it renamed our mu_plugins folder to mu_plugins_old. I have simply renamed the folded and reactivated cashing plugin, which creates the rule and writes in htaccess.

          Thanks Andy for your contrubution. The links you share are useful for anyone looking for the right way of doing 301 redirections.

          Cheers!

          Andy.Drinkwater 1 Reply Last reply Reply Quote 1
          • Andy.Drinkwater
            Andy.Drinkwater @Chemometec last edited by

            That's great news Dusan - glad you figured it out 🙂

            -Andy

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            • Resolving 301 Redirect Chains from Different URL Versions (http, https, www, non-www)
              0
              1
              38

            • Switched from and HTTPS to HTTP. My home page is facing a redirect issue from the http to https. Should I no index the HTTP or find the redirect and delete it? Thank you
              LandmarkRecovery2017
              LandmarkRecovery2017
              0
              3
              42

            • Http:// vs Https:// in Og:URL
              ThompsonPaul
              ThompsonPaul
              0
              6
              637

            • Proper 301 redirect code for http to https
              TimHolmes
              TimHolmes
              0
              2
              23.4k

            • From: http://www. to https://
              Tymen
              Tymen
              1
              4
              121

            • When to use mod rewrite / canonical / 301 redirect
              Matt-Williamson
              Matt-Williamson
              0
              2
              149

            • I cannot find a way to implement to the 2 Link method as shown in this post: http://searchengineland.com/the-definitive-guide-to-google-authorship-markup-123218
              Mark.RedGiant
              Mark.RedGiant
              0
              7
              459

            • 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