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
-
Separate service page for each key-word we're ranking in
Hello guys, I have a service-based website. Right now, I have around 30 commercial pages for different services, that we offer. I came up with idea to add service page for each keyword we're ranking in. For example, we offer home-construction service and we have 1 commercial page for this service. I will create 10-20 pages for keywords, related to home-construction services.
Content Development | | MykhailoRudenko
For example: bricklaying, Fundamental works, Landscape works, Concrete works, etc. I saw similar approach on this website. It's a link on bricklaying page: https://kiev.kabanchik.ua/ua/category/kladka-kirpicha If you scroll down you will see section with keywords, related to bricklaying and each keyword has separate page with duplicate content. My questions are: Do you know the name of this SEO tactic, so I can google more information about it? Do you think that it's good idea to use similar approach in order to improve your rankings for certain keywords? Is it a dangerous SEO tactic that may cause some penalties for your website or it's completely safe? Thank you for helping, guys! 331ea1ea-1d49-4f6c-89ef-510ef4657fa4-image.png c5999dbb-6dfb-4fbe-b3e8-ab9a0943bd88-image.png0 -
Google Authorship and the "Fishkin" Outburst! Sorry Rand ;)
Should companies now shift away from creating great content and invest the time and money into something else? After Rand tweeted his frustration at @JohnMu in relation to "Authorship CTR's", it got me thinking - should we really be blogging as much as we should? https://twitter.com/randfish/status/481948721031024641 I'm certain Google ditched author profile images to improve "mobile UX" and "CTR's" for "paid advertisers". So what I would really like to know is - should small businesses continue to focus on developing great content? How has your marketing strategy changed?
Content Development | | GaryVictory1 -
New sister site VS site redesign and dangers of SEO dilution??
Hi I’ve got a site that is ranking #2 in my area for my chosen keyword but the site is in need of an expansion and overhaul its only one page at the moment and to rank for more keywords its need to be expanded. Or another option is I do own another domain and I was thinking of maybe instead of overhauling the new site launching that as a sister company aimed more at the corporate market, as my first site is a bit more alternative in domain name and content. The thing is i'm not sure how this will affect my SEO they will be on the same CBlock and be offering similar services.
Content Development | | genkee0 -
In my website all the pages are not indexed by google..what to do for the same
In my website http://www.dubins.ae, all the pages are not indexed by google. How to make sure that all the pages are indexed by google?
Content Development | | Muna0 -
High Bounce Rate on this Specific Page
Just a quick question...looking more for opinions and suggestions.... The specific page in question is: http://erasedisease.com/2012/04/09/all-natural-alternative-to-beta-blockers-arginine/ We get great traffic to this page specifically for these search terms (and more): natural beta blockers natural alternatives to beta blockers natural beta blocker supplements The bounce rate on this specific page is usually between 75% to 82%. Does anyone have any suggestions as to why this might be (besides the obvious colors/theme of the website)? Thanks!!
Content Development | | Linwright0 -
Wordpress Ping List, does pinging Google Help? Could it hurt?
So I was looking at updating my ping list in WP. Some of the lists I have come across have a lot of "blogsearch.google" What does a WP site risk in pinging all of these google properties?
Content Development | | Thos0030 -
Not accepted in Google news.
Hallo, Our website was not accepted by Google news although we are confident that our site meets all the requirements. We see several other gambling sites already appearing within Google News’ pages, and we contend that, in most cases, our reporting is both timelier and more relevant. We hope you can give us any feedback. http://www.hetpokerspel.nl/nieuws Regards, Thijs Weinands
Content Development | | Tit0 -
Asynchronous loading of google maps?
I'm working on a page that ranks the 10 best neighborhoods in our city. With each of the top 10 I have a 300x200 google map of the area. These maps are taking some time to load and slowing down the speed of the page. Is there a way to load these asynchronously? Or any other way to speed up the page?
Content Development | | MarieHaynes0