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
-
Should cornerstone content have 3,500 words? Does Google discern words from the main text and from the references?
Is it true that cornerstone content should have at least 3,500 words? I've done some research and found that the recommended amount is between 2K-10k. Also, the content that we create/publish has a lot of references/citations at the end of each article. Does Google discern words from the main text and from the references? Meaning should I count references as part of the word count? Thanks for the help!
Content Development | | kvillalobos0 -
Listings site -is freshness important on results or articles?
We have a property listing site.
Content Development | | nick-name123
Wandered if its more important to update the results of the listings (adding or deleting them) or is adding new articles more important.?0 -
My Article on External Site
Good Morning, I was recently approached by an influencer in my industry who says that they noticed the quality of the content on my website's blog and they want to know if i would like to write an article for them to publish on their blog. The article will mention my products and how they would be helpful to the readers of this particular blog. I would like for some of you to take a look at the blog in question and tell me if you think this is a high quality blog that is worth me attempting to network with and possibly even obtain a link from. You can view the blog here: http://bit.ly/1JfmuRF I see nothing wrong with creating a brand new, high quality, relevant post and having it published on this blog - but i wanted to hear some of your opinions on these types of things. Thanks
Content Development | | Prime850 -
Blogger to Wordpress guide on moving
Hi does anyone know a good guide for moving from blogger to wp, without losing rankings and moving over content and comments? I also want to change from a .blogspot addres to my own .com any help?
Content Development | | xoffie0 -
Page Content?
So I have review pages for websites on my site, each website has a review around 400-500 words. Recently I had my writers write 2 additional articles on each site but about something they have there. My thinking was interlinking them allowing them to rank individually etc. However now after looking around etc.. I see that content that is upwards of 1000 words or more might be more powerful and the way this is all written etc.. I could easily put it all on one page.... So my question is do I go with 3 pages or 1 page. I can see strength in both
Content Development | | dueces0 -
Publishing on sites with greater domain authority
Hello, I had an idea, probably not original: While my website is still gaining domain authority, I was thinking about publishing articles in a website with great domain authority that allows articles from third parties. This way the article's relevance + domain authority of the site would result in a better position on Google for the article I write and with proper links, I can attract people to my website. This would be a temporary strategy until my website's domain authority increases. Any suggestions on how to do this? Where can I publish articles to attract people to my website (except blogs)? Thanks a lot.
Content Development | | Tev0 -
Block Low Quality Pages?
What are your thoughts on blocking (in robots.txt) and/or noindexing low-quality pages to defend against Panda, assuming you can't remove, redirect, or add quality content to it? Also, assume there are no external links pointing to these low-quality pages, no social shares, and zero incoming organic traffic. Has anyone had experience with this as a solution to Panda?
Content Development | | poolguy0 -
What are some good tips for getting approved by Google News?
Please share your tips for improving your chances of getting approved for Google News. Thanks Mozzers!
Content Development | | SparkplugDigital0