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
-
URL, page title, item name - which is most important for google ranking
We are a bridal store and are able to use different information in the URL, Page title and item name. In item name we give the product a name for us to identify ie. Alex Lace Dress in Black/Nude, Ivory/Nude, Red/Red In Page Title we use the suppliers name and product code as well as the item name ie. Jadore j8075 Alex Lace Dress Online Australia URL = alex-lace-dress/ Are we using the correct format ? What could we do to improve them?
On-Page Optimization | | CostumeD0 -
Why does Google pick a low priority page on my site?
Hi Guys. One of my pages ranks quite well for "mid year diaries 14-15" on Google. The problem is it's a really specific product page (A4, Hardback, day-to-a-page diary I think). It would be much better for the user to land on our mid-year diaries category, not really deep into the site. Why is Google prioritizing this product page over our general 'mid year diaries' category? Especially when the category would relate to the search more accurately? I work for TOAD diaries and I think our page rank is 10 for this search. Eagerly awaiting some insight 🙂 Thanks in advance everyone! Isaac.
On-Page Optimization | | isaac6630 -
Duplication in landing page
This is driving me mad, I have a site that for some reason google and moz pick up the landing page as a duplicate. They see "mysite/" and "mysite/index.html" as two different pages and giving me warnings for duplication. I have no 301 included at this time and I am using foundation as the base. This is occurring both on a localhost test bed and live....... anyone got an idea how to correct.
On-Page Optimization | | AndyBirtles0 -
Pages exclusion
Hi there! I don't want to "make relevan"t 3 of the pages my website has. Should I give them a title and a description even if I dont't want them to be shown in the SERPs? Is there any penalty from google if I don't do so? I guess no but just to confirm. Thanks!
On-Page Optimization | | juanmiguelcr0 -
Why don't all my pages have On Page Optimization Reports
Apologies if this question has been asked a million times, but I can't find it. I have 35 pages, yet only 5 of them have generated On Page Optimization Reports. I know I can create them manually, but wondered if I've done something incorrectly? Iain.
On-Page Optimization | | iainmoran0 -
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 -
Google cached snapshots and last indexed
My question is I noticed today that the snap shots of my main pages were outdated. About a month. Then I clicked on the "Learn More" link about cahced images and Google says "Google crawls the web and takes snapshots of each page. When you click Cached, you'll see the webpage as it looked when we last indexed it." I know this sounds really dumb, but does that really mean the last time Google indexed that page? So the changes I have made since then have not been taken yet?
On-Page Optimization | | cbielich0 -
Http://www.xxxx.com does not re-direct to http://xxx.com
When typing in my website URL www.earthsaverequipment.com successfully re-directs to earthsaverequipment.com as specified in robot. However if you type http://www.earthsaverequipment.com it brings up a 404 error Is this a potential issue? if so is there a way to fix it? thanks
On-Page Optimization | | Earthsaver0