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
-
Help getting a Wordpress.com site to rank
Hi all, I have a blog for my site, but it hasn't been integrated into our site yet (that will happen in the next few months when we do some site changes). For now, it sits on a Wordpress.com site, and links from my website. I post a couple times a week, have social media linked to it, and feed posts to aggregators regularly. I also comment and like other Wordpress.com sites, but it just isn't ranking. Do I just need to stay persistent? It's been up for a month now, but still only getting a few hits a day. Any advice?
Content Development | | b4cab0 -
Sites Like Outbrain that are local?
So I used Outbrain and I liked it, but I think it would be more valuable if you could target the state where your client is. Outbrain targets the entire county, which might not be valuable for a local client. I am wondering if there are any other sites like Outbrain that allow you to target locally?
Content Development | | netviper0 -
Does using Articlebase articles on your site push your rank down?
Hello All, I launched a website (www.hrpayrollsystems.net) last year. I'm very new to the SEO world so I'm still seeing what works and what doesn't. We recently republished some articles from articlebase.com that I think may have hurt us in SEO. Does Google see our site as having duplicate content and then penalize us? Our top keyword isn't even ranking anymore when I put it in the sites that tell you where you show up. Help!
Content Development | | HRISGuy0 -
Which is better for seo purposes? site/blog or site/community?
Hi Guys I was wondering if you could help on this one. We are in the process of setting up a wordpress blog for our website to aid our content marketing efforts, and was wondering what main url for this blog is going to be the best for seo purposes? So of the following 2 which one is going to be the better one? site.com/blog or site.com/community If anyone could get back to me on this I would appreciate it. Thanks David
Content Development | | DavidZA10 -
I want to remove some pages from my site with PR, what should I do with traffic?
I have a section of a site that I want to remove. It has a main page linked from the nav menu, and a half dozen subpages under that. The pages get some traffic and have ranks up to PR3, which is what my site's home page is. I'm no longer want to do these pages as they require tremendous upkeep and I'm not interested in keeping them going. So, I know if I just remove these pages and that's all, I'm going to pay for it somewhere with Google. What else should I do? I do't really have similar pages to direct them too.
Content Development | | bizzer0 -
How to free articles sites work when they offer duplictae articles
Hi, i am trying to work out how these free article sites work. They allow people to put on their articles on their sites but these articles are on loads of different sites which means they are all duplicate content. I am finding it hard how google puts up with this and how the sites still continue to rank high in google when all their site is duplicate content. Can anyone please explain this to me.
Content Development | | ClaireH-1848860 -
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 -
Duplicate Page Content WordPress blog with categories?
Just got a crawl report back from SEOmoz and it gives me lots of errors for "duplicate page content". Upon investigating, I notice this is because my WP blog is setup into categories so the home page is almost identical to one of the category pages. None of my actually posts are the same but the category pages have some overlap since the same post could show up in two or more categories. Is this a problem or can I just ignore this error? Any thing I should be doing differently? Thanks!
Content Development | | frankthetank20