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
-
Privacy Policy Pages
When creating a privacy policy page- much of what needs to be added is legal information. This means privacy policy pages may be very similar to others' privacy pages in my niche. Are they all pretty much generic? We have a few different companies and I'm thinking we can have one created and then modify them per company? Is this correct? Mary
Content Development | | MaryNix1 -
I have a domain with rank no 1 in google web search!
I have a domain with rank no 1 in google web search! When I search for the keyword which are the domainname in google adwords, keyword search I get 1.200.000 searches in that keyword. Our domain have only 10 visitors a day - why is that?
Content Development | | fredrecokonsult0 -
Duplicate page issue all from my website blog. How to i fix?
Crawl diagnosis indicates duplicate page content all from the blog on my website. What can i do to fix this?
Content Development | | skinbiz0 -
On page content and PDF - Dup?
Hi We are writing a useful article which we want to put on our site, but we also want to add it as a pdf which people can download - will this be classed as dup copy?
Content Development | | jj34340 -
Does a Google Map on the contact page help with SEO?
In regards to ranking organically for local search results (not google places), I'm wondering if there is any benefit to having a Google Map on my Contact page with our location pinned? If so, how important do you think it is?
Content Development | | pharcydeabc0 -
How many pages is too many to add to a site at one time?
I have quite a bit of excellent content articles at my disposal and we would like to increase the number of pages on our site. I could, theoretically add 100's of pages at a time. Does anyone have a good sense of how much content added to a sight in mass looks bad to Google? My plan is to add approximately 50 pages a week to our site, which already has 4000 pages of content. This is relevant content, since we are a custom writing service and all topics are covered. Our content is what gives us great organic hits and orders. However, I would like to add more than 50 a week...how many is too many? Thanks and I appreciate thoughts and feedback! Karen
Content Development | | eworld0 -
On-Site Blog or Blog Service for Best SEO Results
I had a blog associated with my site, then I had to merge two Google accounts and to make a long story short, my old Blogger page won't transfer to the new account. So, I'm starting fresh. My Question: Would I benefit most from an on-site subdomain blog, adding content to my site on a weekly/monthly basis, or an off-site blog such as Blogger, linking back to pages and resources on my site? Then, any other juicy tips would be great. Honestly, I won't expect a large subscription base. There will be a natural draw for some trade associates, and I'll be linking and promoting them as well. Thanks for any input. I'm new to the community, and SEO, but really impressed with this community.
Content Development | | honestabejosh0 -
Self Hosted Wordpress Video plugins you have had success with.
Does anyone know of some good plugins for wordpress for self hosted video? Thanks in advance!
Content Development | | JasonJackson0