Google indexing https insted of http pages
-
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 -
Ok, well, bye
-
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!
-
you must substitute.
but if the certificate is invalid the redirect don't work because the browser answer before
-
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.
-
Hi
It's correct but you can try so:
RewriteCond %{SERVER_PORT} 443
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R,L] -
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.
-
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
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Should We Wait To Launch a Redesigned Site After Google's Core Web Vitals & Page Experience Algo Update
We are redesigning our WordPress site (over 1300 posts and pages) and are on schedule to launch in May of 2021. Should we wait for after Google's Core Web Vitals & Page Experience algorithm update?
On-Page Optimization | | opiates0 -
Should you do on-page optimization for a page with rel=canonical tag?
If you ad a rel=canonical tag to a page, should you still optimize that page? I'm talking meta description, page title, etc.
On-Page Optimization | | marynau0 -
More Singular KW Targeted Landing Pages vs. Less Multiple KW Targeted Landing Pages
So my question is... I have a adopted a site which currently ranks quite well for some industry competitive keywords with a number of poor quality landing pages which specifically target a singular keyword. I am wondering if its worth merging some of these pages together into one authoritative, better quality landing page targeting multiple keywords (as the intent for some of these keywords are largely the same). What i don't want to do is jeopardise the existing rankings in doing so. The alternative option would just be to improve the content on the existing landing pages without merging. What are peoples thoughts on this? Are there any positive case studies out there where merging has had a positive effect? Any help would be great. Regards,
On-Page Optimization | | NickG-1231 -
Google Index HTTPS
Hi,
On-Page Optimization | | JohnHuynh
I had a HTTP protocol file which indexed. Now I want to change this file to HTTPS protocol. I wonder that is there any effects?
I don't know HTTPS would be indexed by google or not? Thanks,0 -
On-Page Report Card with https
Hi, Our site has a 301 redirect to https and I'm getting two different grades for my pages depending upon whether I type: https://www.domain.com (gets an A grade) or www.domain.com (gets a C grade) Is there a setting I need to use to make sure my campaign knows our site is at https? Thank you 🙂
On-Page Optimization | | GroundSix0 -
Indexed pages in Google webmaster tools
Hi Mozzers, Very quick question. Google WM tools interface has updated and I want to confirm I'm looking at the correct figure. If I look up 'Your site on the web' / 'search queries' / then the 'pages' - this is correct indexation figure yes? This differs from the 'site:' command but that's always the case. Can anyone confirm, Thanks
On-Page Optimization | | Bush_JSM0 -
ON SITE SEARCH INDEXED BY GOOGLE - no follow or no index
Google indexes alll our internetal searches: search box is brand - clothes types - size type - and for each page it creates a page that which creates duplicate page title and unnecessary content. Should I do a nofollow on the advance search or a no index. Many thanks for the info. Sonja
On-Page Optimization | | reallyitsme0 -
Why isn't Google indexing me?
Recently got handed off a .org site for a quasi state agency here in Michigan. Turns out the developer had the site live for the past six months but left the noindex, nofollow tag on everything so the site was invisible to search engines. Obviously we wiped all of those things a couple weeks ago when we got started, added all of our sitemaps to bing/yahoo/google webmaster tools and we've already started getting indexed by yahoo and bing and showing up for branded terms...but NOTHING from Google. WMT says our pages are all indexed, but we aren't showing up for anything in search and we don't seem to be indexed at all. Granted, if this site was brand new and didn't have any links I could see us taking a little time to get found, but this site has very good .gov and .edu links, plus we've built some other solid links to it since we've launched and Google continues to ignore it. I haven't seen this before, but could Google still be ignoring us from the months of noindex, nofollowing? If so, any tips on how to get back in teh Google's good graces here?
On-Page Optimization | | NetvantageMarketing0