Please help me stop google indexing https pages on my wordpress site
-
I added SSL to my wordpress blog because that was the only way to get a dedicated IP address for my site at my host. Now I am noticing Google has started indexing posts both as http and https. Can some one please help how to force google not to index https as I am sure its like having duplicate content. All help is appreciated. So far I have added this to top of htaccess file: RewriteEngine on
Options +FollowSymlinks
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^robots.txt$ robots_ssl.txt And added robots_ssl.txt with following: User-agent: Googlebot Disallow: / User-agent: * Disallow: /
But https pages are still being indexed. Please help.
-
Hi Rookie123
Having unique IP's may be of use from an SEO perspective if you have multiple sites that you are interlinking with the hope of boosting SEO. However there is no guarantee that Google will not be able to work out that the sites are still in fact related.
If this is a single stand alone site then I would not worry about having a unique IP as I am not aware of any tangible benefit and would be more focused on resolving the duplicate content issue.
Hope this helps.
-
Hehe. Some one on DP suggested that.
So are you saying just add this to htaccess
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteCond %{SERVER_PORT} ^443$ [OR]
RewriteCond %{HTTPS} =on
RewriteRule ^(.*)$ http://www.sitename.com/$1 [R=301,L]
I am just trying to understand what it actually do? Also I am guessing i will have to deindex already indexed https pages from webmaster tools.
-
Did you just copy code from Digital Point or have SEOmoz started putting ads in?
The nofollow should in theory stop bots wandering around the https version once they're on there, so can't hurt.
I think you're best redirecting the https version though if you don't need it at all.
-
Barry,
I will try that also. Also wanted to ask you what you think about adding following to the template.
if ($_SERVER['HTTPS'] = "on") { echo 'content="noindex, nofollow">'; }
-
Can you just redirect the https to the http version?
Options +FollowSymlinks
RewriteEngine on
RewriteBase /RewriteCond %{SERVER_PORT} ^443$ [OR]
RewriteCond %{HTTPS} =on
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L] -
Its a wordpress site and actually I do not even have a single page that needs https.
I am also thinking of just getting rid of ssl from my site. I added it to have a unique IP for my site cause I had heard it helps with SEO but I think the issues outweigh the benefits.
What do u think is better, do these code changes or just get rid of SSL? -
The problem here is you've not told the robots to noindex the https version, you've simply said they're not allowed to crawl it, but if they see a link go to there they know it exists in some capacity. What you need is the robots noindex tag on all these pages.
If you have some way of differentiating the https pages in your template then you just need to add
to the header.
If you can't then you can try to do it by putting this bit of php in your header
if ($_server['https] == "on") {
echo ";
}?>
I would guess there's some dangers in that doing bad stuff to your site, so make sure and test it. If it appears on all your pages take it off immediately!
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
-
Will SEO Blogs Divert Traffic from Main Web pages using same keywords?
Our company has drafted several SEO blogs using certain keywords. If we post these SEO blogs to our website and social media channels , and the blog keywords are also used on our main website pages, will the blogs divert or dilute traffic to our main web pages? Thank you for your expertise and insights in advance.
Content Development | | Johnenchroma0 -
Google Slower to Trust New Pages than One Year Ago?
It seems to me that Google is slower to trust (and rank) new pages today than in the past. I used to be able to put up a new page and it would go right to the top of a competitive SERP. For about the past year when I launch a new page it starts deep in the SERPs, sits there for a few weeks, then starts slowly moving up. These pages still eventually rank on the first page of Google - often at #1 or #2 after wikipedia or another strong site - but it can take a few months to get there, several months in a competitive SERP. These are not "hot news" topics where freshness is an important factor. Instead they are product pages or general information articles. Anybody else seeing this? [ Just stabbing in the dark here... I am wondering if Google is relying more on visitor behavior these days and the delay is while they collect data?... Just stabbing in the dark.]
Content Development | | EGOL0 -
Are there any tools available for wordpress that can help with SEO?
I'm looking for a wordpress plugin that that keeps current/updates with all the changes that constantly take place on various search engines. Is there such an addon that meets this criteria?
Content Development | | uofmiamiguy0 -
Too many links on page?
Hello, Can my rankings suffer if some of my inner pages have too many links/anchor text? Or would link juice just stop being passed after X amount of links? I have content on these inner pages, and it all flows. Thanks!
Content Development | | TP_Marketing0 -
Is putting introduction to new stories on the front page a good idea
Hi, i am trying to find out if i should be putting all the introduction to new stories on the front page of my magazine www.in2town.co.uk. I am not sure if to just put certain stories on the home page or if it would be better for seo reasons to put everything on the front page for the search engines to pick it up quickly. so for example, all health stories, all news stories and all lifestyle stories that have their own section, should i make sure that they all appear on the home page as an introduction. Or should i have them kept in their own section please do let me know
Content Development | | ClaireH-1848860 -
Can free article sites damage my reputation
Hi i have been submitting a lot of fresh articles on free article sites and they have been picked up which is good but my problem is, i am finding loads of these sites who have picked up my article using some sort of article rewrite programme and my articles look like they have now been written by a two year old. I want to know if this is going to spoil my reputation and i would like to know why people use these programmes when they do not even make sense.
Content Development | | ClaireH-1848860 -
How to best implement "metered model" on a site
Hi, I'm scratching my head over how to best implement the "metered model" on a site without users being able to game it all too easily. Has anybody in this QA forums implemented one before and is willing to share his/her best practises and findings? Currently I think raising the bar to force everybody to login is a bad idea + we would still need to open the site for google and other engines and can be tricked that way. Also this might lead to some penalty (cloaking)? Using cookies might not be enought as I think almost every Internet user these days knows that this might be the #1 place to look and they are deleted in a second. Counting based on a users IP-adress is also a bit critical as this is not accurate enough. Should we just use cookies and hope for the best?
Content Development | | jmueller0 -
Duplicate content for manually setup blog and wordpress blog
We have a website where the ecommerce will not allow us to host blog. So we created our own manual blog page setup. Will this flag duplicate content on Google? http://www.homesupershops.com/blog and http://www.homesupershops.com/blog-july have same content. How come on a word press the same content on http://www.vizionseo.com/blog/ and http://www.vizionseo.com/blog/2011/05/how-can-your-business-rank-high-on-google-maps/ does not flag duplicate content?
Content Development | | VizionSEO990