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
-
How to optimize content pages with ecommerce?
Some content pages act as buyers guides for certain products for example Used Paddle Boards for Sale - http://www.islesurfboards.com/used-paddle-boards-for-sale.aspx this is a content page that gets huge amount of traffic and is pure content with no products on the page, but we also have a ecommerce section of the site that is Used Paddle Boards for Sale -http://www.islesurfboards.com/buy-used-paddle-boards-for-sale.aspx however this page just has a small paragraph and all the ecommerce product related to this section on the page. The content only page above gets all the traffic and rank and then they click over to the actual ecomm section wiht the products from a link on that page. Should i merge these two together so its just one page and put the content on the ecom page? If i do all the content with push the ecommerce products down which is not good so what does anyone recommend as a best practice? Also will this mess up the content pages rank is i merge them assuming i redirect? or Keep them seperate like i have with a content page regarding "used paddle boards for sale" and an ecommerce page that sells acutal "used paddle boards for sale"
Content Development | | isle_surf0 -
How Google judge about duplicate content?
With recent Search engines updates one thing is clear we cannot ignore content. Content marketing definitely going to be most important part of our SEO strategy. I have few doubts about content marketing (circulation of content over web) where I want suggestions of community members. There would be different thoughts so I would like to have as many as responses to know what majority thinks: When we are writing guest posts, does article needs to be unique with each and every blog we are writing or we can safely circulate one good piece of content to 10-15 blogs who are interested in our creative. We have written a good blog post for our own domain. Apart from social sharing should it be posted to other related blogs too or it should be unique to our domain only. Social sharing, mentions, like of blog matters in rankings?Seems yes they do but need to know what majority thinks. Finally what is the safe number to circulate your content over web.
Content Development | | EG0CENTRIX0 -
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 -
Related posts Wordpress plugin
Hi, I was wondering what Wordpress plugin you are using to add related posts to your blog posts. I would need one that allows you to pick the related posts manually and doesn't break the on-page SEO. Thank you! George
Content Development | | georgesan0 -
Access to a Clients Google Places Account
I would like to manage my clients Google places account so I can add pictures, fill out the profile etc. If he already has a Google places account how do I get access? I feel a little gun-shy about asking for his personal email and password to gain access.
Content Development | | Czubmeister0 -
Adding a picture page - Good or Bad?
I have a lot of cool pics that just did not quite make it on one of my pages. Not necessarily because I did not want to, but space reasons they just happened to lose out to another photo. What I was thinking was, maybe I can add like a gallery page? Possibly with links back to the pages that each photo was considered for? Would this be a decent idea or just a page deemed as having low quality/value and end up hurting my site. Or maybe you can add an idea that may make it work for me!
Content Development | | VictorVC0 -
Should I no-follow my WordPress tags
I just launched a WordPress blog on our website and SEOMoz is reporting duplicate content on all of our tags. We only have one post so far, so of course each tag is going to be duplicate. Should I no-follow those tags for the time being?
Content Development | | TRICORSystems0 -
Transfer existing blog to wordpress.org or start a new blog
My blog sits on the wordpress domain http://gardenbeet.wordpress.com/ - it has good page rank and has around 300-400 visits per day - should i move it to my website or Should I start a new blog? i have a page set up for it on my website but it now has good rank http://www.gardenbeet.com/content/design-blog.html - and now want to keep this URL am a bit confused - what is the best strategy in terms of SEO?
Content Development | | GardenBeet1