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
-
Traffic to blog home page is going down after changing my WordPress Theme
I recently changed my wordpress theme from a standard free theme to a newer theme. The home page I switched up a bit adding more calls to action to some of our top posts and leading people to popular categories and so on. This greatly improved the usability of our site as it allowed us to highlight new posts. The previous free template simply listed 10 of our most recent posts on a page with small snippets and then you had to move to the next page to keep reading. Since switching my theme the blog traffic has stayed relatively level. That being said, the specific posts traffic is going up a lot whereas the organic traffic to the blog homepage is now nearly depleted. Is this a common thing to happen or is there anything I can do to fix this issue?
Content Development | | saultienut0 -
I want your SEO feedback for my site!
Hello Moz community, Please check out my website http://www.likechimp.com - I'd love to know your thoughts. I have never built links for my website but managed to do pretty well on the rankings organically. Lately, figures have dropped so need to get back up there on Google. Any tips from what you see already would be greatly appreciated! Example ecom product I sell: http://likechimp.com/facebook-shop/buy-100-facebook-event-attendees/ Thanks
Content Development | | xlucax0 -
Guest blog on my web site.
**I received this email from a lady who wishes to write articles and post them on my site under my news section . Ok, if its quality I dont mind hiring somebody to create a post. Her proposal is as follows and this is her email :-**Basically what I can offer is to write a couple of articles for your News section, something fun and interesting for your visitors which will hopefully drag some traffic your way. I could make them well suited to your site and I could include in each a link to a client of mine - one who wants to be exposed on a good site like yours - and for doing that I can offer you compensation of £33 for each client link - 1 per article. For example, one client is Watches of Switzerland, so I could write an article about ideal wedding gifts for a groom maybe, or something about a perfect Honeymoon destination like Switzerland, and slip a link in there. Other clients include Weddingsite and Lampcommerce - which could be included in something about making a matrimonial home. There are a few stipulations I would need to abide by, like - the article would need to be 500 words, it would need the link to be a 'do follow' link, it would need a picture or two, and it would need a couple of 'sacrifice links' (just links to Wikipedia or something to make it more Google friendly). Question. Is this what a guest article is ? and also is the format ok ? Sorry if this seems a dumb question but still learning guys . King regards to everyone Peter
Content Development | | weddingshoesandaccessories1 -
Is there a content ratio that google looks for?
What i mean by this is: If i have a 1000 page ecommerce site that has say 10 pages of good quality content (1% good content) and a competitive site that has 100 pages of good content (10% good content) and another that has 500 (50%). if they are all almost the same in every other way the 50% content site would win hands down. however this is not always possible to have so much good content on some types of site. The question is: Is there a min percentage to aim for? Also is there a similar min rate of content production to aim for. Is their a kind of tipping point to get past that google will think they are doing things right i should keep an eye on them!
Content Development | | mark_baird0 -
Site Content Review Please!
I m looking for someone who can review my site and let me about quality of content on my site. Can anyone suggest / know who I can talk to about this ? Nick
Content Development | | orion680 -
Name Some Ecommerce Sites That NAIL Blogging
Have a few favorites but would like to get some other people's opinions on some ecommerce sites that are doing blogging RIGHT. Who is supporting their online marketing with an amazing blog? One of my favorites is Backcountry.com's The Goat (http://thegoat.backcountry.com/) Let me know!
Content Development | | GManSEO1 -
Duplicate page title on blog
Is this something I should b concerned about? I get about 6 posts per page with unique titles - however the title per page is not unique. Is this important?
Content Development | | MartinSpence460 -
Blog content practices for e-commerce sites
What is the best practice in regards to content for e-commerce blogs on the same domain as the web-store (blog.storename.com)? What balance of content should be on the blog vs. the item & section pages or doesn't it matter?
Content Development | | MEldridge0