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!
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
-
Content Duplication Issue On Content Publishing Site
I am running Free Article Posting site but I discover people are posting their content which already has been published on different sites before. What should i need to do in order to save my site from Google penalty.3 waiting for your kind help in this regard Thanks in advance
Content Development | | Mustansar0 -
At what point to stop comments on a blog? Do too many comments hurt the page?
I have a page that's ranking pretty well, and driving sales. That page is starting to get 10+ comments per day and is starting to get quite long. I was wondering if there is a point where I should disable the comments? My gut tells me that people interacting with the page, and Google seeing responses with the users SHOULD be a good thing not bad. But, then I think that a majority of the content of the page is no longer the article, but the comments. All the comments are good, non spammy and directly related to the topic. People just asking questions, etc. Good engagement, I should be happy right?
Content Development | | DemiGR0 -
Is it black hat to include your city name in a blog title to hopefully help local search resultts
I frequently blog and want to increase my ranking in local search in my area-Boston-blogging about Plastic Surgery. If I write a post about tummy tuck will I be penalized by Google search if I use a title like
Content Development | | wianno168
Tummy Tuck After Weight Loss Boston or Boston Tummy Tuck After Weight Loss0 -
Google "blog" search
Anyone notice a while ago - the "more" drop down used to include "blogs" which really helped with finding like minded blogs for content marketing. Anyone finding this frustrating and or find a solution? I know they supply us with: http://www.google.com/blogsearch Any other hints? Your pal, Chenzo
Content Development | | Chenzo0 -
Advice on Security Concerns for WordPress Site
My company has a WordPress site (URL is learn.automationdirect.com) It is a very simple site and is currently under utilized. I would like to make some SEO improvements to it by activating comments and installing an SEO plugin like Yoast but, I am being help back by concerns about the sites security. Is there some sort of suggestion/advice you guys can point me to that will help get the site to a place where we are confident in it's security level, and I can move forward with optimizing it?
Content Development | | ChadC0 -
What are the advantages/disadvantages of a blog residing on a website as opposed to free-standing and linked to site
I have a cleint with a web site and with 3 freestanding wordpress blogs - should we be housing those blogs on the site? should we combine them (its an insurance compnay with several business units). thanks
Content Development | | thirsty30 -
Google Site Search
Hi, I was just wondering if anyone had used Google Site Search before and what they thought of it? http://www.google.com/sitesearch/ It seems quite expensive for just returning your own pages but would be interested to find out more. Thanks
Content Development | | ASOS0 -
My Wordpress traffic has gone through the roof, huge referrals from wordpress.com - why?
My Wordpress traffic has hit an all time high over the last few days - in the last 48 hours I've had as many views as the last two months combined. This huge spike in traffic has coincided with a great piece of exclusive content that went up, but I wouldn't expect the traffic to be nearly as high as this. The strange thing is that all the extra traffic seems to be referred from Wordpress.com, however, I cannot drill down to a more specific URL. Also, the referrals do not seem to translate into page views of the homepage, nor a particular article. Can anyone offer any insight into this situation? Thanks
Content Development | | pugh0