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 to https redirection issue

    Http to https redirection issue

    Technical SEO Issues
    3 3 257
    • 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.
    • dhananjay.kumar1
      dhananjay.kumar1 last edited by

      Hi,

      i have a website with http but now i moved to https. when i apply 301 redirection from http to https & check in semrush it shows unable to connect with https & similar other tool shows & when i remove redirection all other tools working fine but my https version doesn't get indexed in google. can anybosy help what could be the issue?

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

        Without your URL it is pretty hard to diagnose the issue, it could be multiple problems.

        I use the following redirect in my .htaccess file....

        RewriteEngine On
        RewriteCond %{HTTPS} off
        RewriteRule ^(.)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
        RewriteCond %{HTTP_HOST} !^www.domain.co.uk [NC]
        RewriteCond %{HTTP_HOST} !^$
        RewriteRule ^(.
        ) https://www.domain.co.uk/$1 [L,R,NE]

        --
        I also enable HSTS on my server to perform the same thing and force to run via https://

        I would also suggest checking that your SSL certificate parts are installed correctly on your server.

        Hope that helps a bit.

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

          Tim Holmes gave a good answer but it does assume your redirects are being applied via a .htaccess file which is the usual method if your website is hosted on a Linux / Apache server.

          If your website runs on a Windows / IIS server, then instead of implementing your redirect rules via .htaccess you'd be using web.config instead. Obviously most plugins (especially on common platforms like WordPress) are coded to interact with a .htaccess file. If you're running on IIS instead they could break stuff or at the least fail to function entirely.

          On Google you can find many posts complete with web.config instructions:

          https://www.google.com/search?num=100&q=https+redirect+for+web.config

          This is the one which Google gives the knowledge-graph entry to:

          https://www.ssl2buy.com/wiki/http-to-https-redirect-using-htaccess-or-web-config

          The second part of the content deals with Windows.

          Checking that your SSL certificate is correctly installed, valid and provided by a supplier which Google accepts is highly advisable. If browsing to an HTTPS URL on Chrome yields warnings or 'not secure' messages, it's safe to say that Google has not accepted your SSL certificate. If you can't even browse to HTTPS URLs, something is likely wrong with the install!

          Hope that helps

          1 Reply Last reply Reply Quote 2
          • 1 / 1
          • First post
            Last post
          • Redirect to http to https - Pros and Cons
            FreddyKgapza
            FreddyKgapza
            1
            9
            259

          • 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

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

          • Http -> https redirections / 301 the right way
            Andy.Drinkwater
            Andy.Drinkwater
            0
            4
            61

          • How to change 302 redirect from http to https
            davedon
            davedon
            0
            4
            2.1k

          • Http v https Duplicate Issues
            AxialDev
            AxialDev
            0
            5
            490

          • Redirecting http to https, do I need to add new url to webaster tools?
            jaychow
            jaychow
            0
            6
            119

          • Http & https canonicalization issues
            zeepartner
            zeepartner
            0
            3
            258

          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