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

          • Do you still loose 15% of value of inbound links when you redirect your site from http to https (so all inbound links to http are being redirected to https version)?
            LoganRay
            LoganRay
            0
            5
            74

          • 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

          • Responsive web design has a crawl error of redirecting to HTTP instead of HTTPS ? is this because of the new update of google that appreciates the HTTPs more?
            donford
            donford
            0
            2
            129

          • Http and https issue in Google SERP
            Everett
            Everett
            0
            3
            1.5k

          • 302 Redirect from HTTP to HTTPS
            corwin
            corwin
            0
            2
            486

          • 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