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 Are You Handling Blog Posts/Author Pages when Employees Leave the Company?
What do you believe to be the best approach in handling blog content for employees once they have left the company? We don’t want to remove the blog posts so they need to stay, but then there are the author pages. This gets tricky because the CMS ties the blog post to the author. One approach might be to change the author’s name to the Company’s name to get around author pages for people no longer with the company. It’s kind of tricky because the blog posts won’t have the same credibility if they don’t have a person’s name/photo associated with the post. We could leave the blogger’s page and list him as a “Contributing Author” once he’s left the company. Thoughts?
Content Development | | RosemaryB0 -
How to write a good case study page?
Hello all, What components go into making a good case study please? Is there a specific structure that works well from an seo perspective - or is it just about making something read well? Thanks William
Content Development | | wseabrook0 -
Authorship showing in SERPs for non-blog pages
Hi, A few months ago we set up authorship for on our blog articles for multiple authors, which has helped driving extra traffic to our blog posts. Today, I did a search for one of most important search terms and one of our non-blog pages is showing in the first page of the results with one of our authors headshot next to it. Technically we have not not set it up to do this, the page is on a different CMS to our blog (which is wordpress). I'm not complaining because I think this is a positive outcome, but does anyone have an idea why it has done this? I was under the impression that only blog article pages could have authorship set up. Thanks, Stu
Content Development | | Stuart260 -
How to fight against a site always "re-write" your content?
A site is always copying our content then re-write to their site, how to fight against this kind of action? (Many of those copied content can get a rank very closely behind us, which will grab some of our visits ) I tried to find DMCA, but as they have changed some paragraphes, etc, DMCA can't punish them as copying. I think many of you also have met such a problem, how will you handle this situation??
Content Development | | JonnyGreenwood0 -
What is better joomla or wordpress
Hi, i am sites in joomla and wordpress but i am interested to find out what people think of joomla and wordpress and which is the better platform for websites, joomla or wordpress. I have read a lot about how wordpress is better than joomla then i have also read how joomla is better than wordpress so i would just like to know what people on here think. would love to see some examples of good websites in either wordpress or joomla
Content Development | | ClaireH-1848860 -
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 -
Is this a good website design for attracting google and readers
hi, we are looking at re-doing our website and would like to know if this site is a good example of attracting traffic and google. what i mean is, they only have the title of stories and not much content, please take a look and let me know if we can learn any lessons from this site or if they should be adding more content http://www.femalefirst.co.uk/
Content Development | | ClaireH-1848860 -
How to organize content for ecommerce site
Hello, We've decided to create 24 articles of content for our ecommerce site, everything from an FAQ to history of the products to 10 articles on the top 10 products. Really useful to the user. How do you suggest that we make our content visible to the users? We could put a nice button on our right banner that says "Extensive Help Session" or we could put a banner on our home page or we could make it a tab at the top of the screen. We could additionally make a well organized footer with links to the articles. Or we could do all of those but that might be overkill. What do you suggest?
Content Development | | BobGW0