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
-
Unsolved 301 Redirect chain http>https>https:/www
Dear community, I have the same issue with redirecting chain from http - https and then to https:// www.____
On-Page Optimization | | Damian_Ed 0
In one of the previous opened discussions the solution given was: you'd update the server level rule to point directly to the end URL form.
Re: 301 Redirect chain Are there any tutorials or resources available to help me properly implement this solution and resolve this issue? Tags: 301 Redirects, HTTPS, WWW, Server Level Rule, Redirect Chain Any tutorials how to do it properly to resolve this issue ?0 -
Deleted pages still registering as 404 pages.
I have a an all html site that I can only work on through the ftp. The previous marketing company ran a script that built thousands of location landing pages, but all they did was change the tags and headers and the keywords in the pages, other than that they are all duplicate pages. I removed them, but Google is reading them as 404 pages. How do I tell Google those pages don't exist? or do I just need to let the bots crawl it a few times and it will see that eventually?
On-Page Optimization | | SwanJob0 -
Why is this site 1st in Google??
Hello The site www.woodensigns.net is 1st in google for the keyword "wooden Signs". All seo indicators are poor except keyword in url; wich, i thought, was not a + for google anymore. Could someone help me to understand here? Thank you Emmanuel
On-Page Optimization | | manu450 -
Issue: Duplicate Page Content (index.htm)
I get an error of "**Issue:**Duplicate Page Content" for the following pages in the SEOMOZ Crawl Diagnostics. But these pages are the same one! Duhhhh.... Is there a way to hide this false error? http://www.stdtime.com/ http://www.stdtime.com/index.htm BTW, I also get "**Issue:**Duplicate Page Title" for this page. Another false error...
On-Page Optimization | | raywhite0 -
On Page Optmisation for Newbie
Hi All, Literally just signed up - and thought I might be able to dive straight into my pages using the On Site Optimiser to check page, make some changes, then check again and see it have immediate effect on the analysis. Not so? Each time I click on "Grade My On Page Optuimisation" with the expectation that a box formerly with no tick now gets one, nothing changes :o( Chris.
On-Page Optimization | | Chris19700 -
Does a page's url have any weight in Google rankings?
I'm sure this question must have been asked before but I can't find it. I'm assuming that the title tag is far more important than the page's url. Is that correct? Does the url have any relevance to Google?
On-Page Optimization | | rdreich490 -
Why some pages are not indexed?
I have a furniture´s ecommerce. When searching for "site: movstore.com.br" returned 1080 results, but if I search for "site: movstore.com.br / Product" returned 1020 results. I mean, that 1080 indexed pages, 1020 are products pages and the other 60 pages are irrelevant. Where are the category pages? "site: movstore.com.br / Categories" - 0 results
On-Page Optimization | | maisempresas
"site: movstore.com.br / Departments" - 0 results
"site: movstore.com.br / Marks" - 0 results What might be happening?0 -
Https and secure pages
Hello, I have a facebook badge in my footer. Is it okay if I make the code call on https. It makes the page secure for IE. I have also have done this for images. These secure urls are also being called on non secure pages. But I don't think that matters does it? Code below. Thanks Tyler
On-Page Optimization | | tylerfraser0