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. Google indexing https insted of http pages

    Google indexing https insted of http pages

    On-Page / Site Optimization
    8 2 479
    • 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.
    • ovieira
      ovieira last edited by

      Hi!
      First of all i have a Wordpress portuguese languagem website (**http://**bit.ly/TGjpVx).

      For a while, for security pourposes, i had a SSL certificate installed on my website but i didn't renew it, for a few months now. I didn't have any special https page. All pages responded using http or https.

      My problem is that it seems that Google still indexes some o my webpages with https and not http, so when people click on it they get a bad cached page. No good for SEO, i think.

      What can i do about this? I only want Google, and other serach engines, to index my clean http pages (about 70 pages).

      Thanks,
      OV

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

        If i understand better you can do a redirect with .htaccess if you have a linux hosting or directly with IIS with Windows Server, so when someone found your index page (https) and click over, will help the redirect.

        Example:

        Index page:

        https://www.yourdomain.com/page.html
        REDIRECT------------------------------------->
        http://www.yourdomain.com/page.html

        ovieira 1 Reply Last reply Reply Quote 1
        • ovieira
          ovieira @malecce last edited by

          Hi Maurizio!

          First, thanks for your answer.

          I have a linux based hosted website and i tryed changing the .htaccess file (see below) but when i click on an indexed https page it isn't redirected and i don't know why.

          ...

          RewriteCond %{HTTPS} =on RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]

          ...

          PS: obviously, i have my real website domain insted of 'www.yourdomain.com'. 🙂

          Regards.

          malecce ovieira 4 Replies Last reply Reply Quote 0
          • malecce
            malecce @ovieira last edited by

            Hi

            It's correct but you can try so:

            RewriteCond %{SERVER_PORT} 443
            RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R,L]

            1 Reply Last reply Reply Quote 1
            • ovieira
              ovieira @ovieira last edited by

              Hi!
              Substitute my lines your yours or just add yours?

              I also found this post (**http://**bit.ly/S5dN4) regarding this same issue. Is it possible that de SSL certificate, even do it's a invalid one, gets served before any redirect?

              Regards.

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

                you must substitute.

                but if the certificate is invalid the redirect don't work because the browser answer before

                1 Reply Last reply Reply Quote 1
                • ovieira
                  ovieira @ovieira last edited by

                  Hi!

                  Just updated my .htaccess file with the following lines and it works(!!!).

                  RewriteCond %{SERVER_PORT} ^443$ [OR]

                  RewriteCond %{HTTPS} =on 
                  RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]

                  I guess thre's was line missing that you mencioned.

                  Thanks Maurizio!

                  1 Reply Last reply Reply Quote 0
                  • malecce
                    malecce @ovieira last edited by

                    Ok, well, bye

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • When making content pages to a specific page; should you index it straight away in GSC or let Google crawl it naturally?
                      Jacksons_Fencing
                      Jacksons_Fencing
                      0
                      5
                      57

                    • Why my website some pages is not index in google ?
                      Andy.Drinkwater
                      Andy.Drinkwater
                      0
                      5
                      207

                    • Why are http and https pages showing different domain/page authorities?
                      evolvingSEO
                      evolvingSEO
                      1
                      4
                      2.4k

                    • Google index new data from my website page
                      AlanBleiweiss
                      AlanBleiweiss
                      0
                      2
                      94

                    • How to REMOVE a page from GOOGLE INDEX?
                      DJ123
                      DJ123
                      0
                      8
                      117

                    • How to find google indexed pages
                      MikeRoberts
                      MikeRoberts
                      0
                      5
                      1.1k

                    • Which redirect to use when redirecting to https page from http page
                      AlanBleiweiss
                      AlanBleiweiss
                      0
                      2
                      302

                    • Indexed pages in Google webmaster tools
                      Bush_JSM
                      Bush_JSM
                      0
                      6
                      2.7k

                    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