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
-
Sitemap - 200 out of 2100 pages indexed
I submitted the .xml sitemap in Google Webmaster Tools and only 200 out of 2100 pages were indexed.
Content Development | | Madlena
Why is that and what can I do ?0 -
Help getting a Wordpress.com site to rank
Hi all, I have a blog for my site, but it hasn't been integrated into our site yet (that will happen in the next few months when we do some site changes). For now, it sits on a Wordpress.com site, and links from my website. I post a couple times a week, have social media linked to it, and feed posts to aggregators regularly. I also comment and like other Wordpress.com sites, but it just isn't ranking. Do I just need to stay persistent? It's been up for a month now, but still only getting a few hits a day. Any advice?
Content Development | | b4cab0 -
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 -
Suggest Me About my Site Content
I have build a " Healthy Breakfast " related website...I have some post on my site related "health breakfast" keywords.But i am not sure is my Content is Doing well to beat my Competitor or what type content i should write My Competitor for " healthy Breakfast" keywords are : http://www.realsimple.com/food-recipes/recipe-collections-favorites/healthy-meals/breakfast-to-go-10000001047596/index.html http://www.eatingwell.com/nutrition_health/nutrition_news_information/healthy_breakfast_foods_for_weight_loss http://www.womenshealthmag.com/nutrition/healthy-breakfast http://www.fitnessmagazine.com/recipes/healthy-eating/nutrition/the-you-can-do-it-diet-breakfast-choices-/ http://www.foodnetwork.com/topics/healthy-breakfast/ Actually I am confused what i should write to keep my traffics happy and get Good Rank in Google Let me know if you have any more info thanks
Content Development | | seolearner0070 -
What is your take on using Google images for blogs
In your opinion, do you think it is okay to use Google images for your blog posts as long as it credits or includes a link to the site in which you located it? We tried looking at stock art for some license-free photos and had no luck in coming up with good pictures. What rules or guidelines do you follow when looking for pictures for your customers blog (or your own)? A lot of our posts have to do with "what to do in this city" or "Where to go in this city". Do you think it's okay to use Google images for these types of posts?
Content Development | | qlkasdjfw0 -
Does Google penalize for duplicate blog posts?
Occasionally, I get asked by another blogger if they can repost (in full) one of our blog posts on their blog as a guest post. I've always been under the impression that Google penalizes this type of behavior, but I haven't seen any evidence. Is this true?
Content Development | | Event360300 -
I need to feed our companies blog into our facebook business page
Hello can anybody help me. I'm trying to setup a feed from our company blog to our companies facebook page. When I try and Google it the advice is out of date.
Content Development | | catherine-2793880 -
Wordpress Canonical
I installed All in One SEO Pack widget, as recommended by SEOmoz a while back, and my Notices for this are higher. To fix the Connicalization issues with my Blog, on WP, but it keeps adding the page name in the URL, as displayed <meta name="description" content="Get more information from Gary!(602) 386-4415 or gwilliams@cisaz.net Also known as Web 2.0, social media sites like Twitter and Facebook are the advertising" /> <link rel="canonical" href="[http://www.cisaz.com/blog/cisaz-social-network-solutions/](view-source:http://www.cisaz.com/blog/cisaz-social-network-solutions/)" /> Any advise?
Content Development | | smstv0