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
-
SEO Questions & Help
I have a woo commerce shop in the firearms industry which makes advertising even more difficult because no FB, IG, or Google campaigns. I do have other sources of advertising but I'm a complete noob when it comes to SEO and the like. I know it exists and its important and that's the extent of it. I was thinking of hiring someone on Upwork to take care of this on my website but what kinds of questions/things I should look out for to keep from getting scammed? Any tips would be appreciated
Content Development | | chrisjordan0i10 -
Does every keyword need its own landing page?
So we're doing a bunch of keyword research. We've identified the big traffic, higher competition keywords and we've identified tons (thousands) of long-tail keywords that would be appropriate. What I'm wondering is: does every keyword need its own landing page (or content page)? Obviously, we'll be building content for all the primary keywords we're targeting. I'm less mystified about that. What I'm more confused about is what to do about the long tail keywords. For there to be any measurable traffic increase, we need to rank well for thousands of long tail keywords. But it's just not realistic to create thousands of quality content pieces to target each of these long tail keywords individually. So how do you go about ranking for large numbers of long tail keywords? I saw somebody post about using an FAQ page to target multiple long tail keywords which makes sense but even with that I'm not going to have a thousand questions. How does one go after large volumes of long tail keywords? Thanks, --eric
Content Development | | EricOliver0 -
Would adding a news page hurt my site ranking ?
Hi Mozers I was thinking about adding an industry news page where we would post articles written by others but give proper citation and linking. Would a page like this hurt my SEO ? Thank You
Content Development | | Pzabarko0 -
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 -
Can having similar content on my company's two sites hurt our rankings?
We have a very successful website that has been up for a number of years (www.comellaortho.com). We rank high in the natural rankings for that site. A few months ago, we started seeing patients in another nearby city. I purchased a new domain name, www.dansvilleortho.com, and had our web company duplicate the website under the new domain name. The reality is that the content on these two sites are nearly identical. Some of the pages are different; for example, there are fewer pages on the new site. But the pages that do exist are nearly identical. My question is: Can having similar content on my company's two sites hurt our rankings? Based on what I've read thus far, I believe the answer is "Yes". However, I'm curious how bad this may hurt us. I'm not as worried about the new site (dansvilleortho.com) because our competition in that city is slim to none. But I AM worried about harming the original site/business (comellaortho.com). Which site(s) rankings may be affected by this, and if so, how bad? Thank you.
Content Development | | comellortho0 -
What's the best RSS Feed Pluggin for Wordpress?
I need to add an RSS feed for my Wordpress blog. Which one is the best to use? How can I maximize my RSS feed once I have it ? I'm thinking Technorati but what other places should I place it?
Content Development | | bronxpad0 -
Google : Bad positioning of my new articles for 2 months
For one or two months my new questions / Answers have a bad positioning and competitors who have a contents of inferior quality are classified in front of dismoicomment.fr. Recently I had + of 1000 errors of exploitation in webmasters tools because there was an url in the code of every page which was untraceable. Do you think that it can come from there? Nevertheless since the passage of Google panda, I have more traffic. I don't Understand... Furthermore my old posts have same positioning. My website : www.dismoicomment.fr Thank you. Sorry for my bad level in english.
Content Development | | elitepronostic0 -
Do Older Post Dates Affect Click Throughs From Google ?
My Blog Entries appear in Google with a date, do those dates matter ? Will people stay away from an older date, say 2009 ? Is it worth removing the dates ? Or should I update the entry and change published date ?
Content Development | | jp_cp0