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
-
Best practice for Wordpress /page/2/
I realize that it might be a minor point but it still bugs me. We have a blog with a number of posts. Content of the posts does not expire or age (in the rare case something changes, we do update the information in the posts). The wordpress blog is setup to display our latest posts and displays 15 posts at once. Since we have a lot of content, the older posts get pushed off the front page which is understandable and desirable behavior. However the pages that have older posts have names like "/page/2/", /page/3/, /page/4/ and so on. This does not look very SEO or user friendly to me. What do you think? Did you come up with something better then /page/ and then a number?
Content Development | | SirMax0 -
Does aggregating content hurt your moz / google rank?
I have a news section on my site that I aggregate from multiple RSS feeds. They are stored on my site and I have sitemap that links to them. Is this a negative thing to do? Since its overall duplicate content to another site, it may be a strike against me. Should I just leave it as an updating feed and not keep the articles visible on my site?
Content Development | | BrickPicker0 -
Pages and categories with the same name?
I manage a wordpress based site that is needing to under go a site architecture overhaul. the site is christ.org and one of the problems is it has 89 pages but really only 4 are navigatable (not a word apparently). The site also has over 400 posts so categories and parent pages are both definitely needed. One option is I convert a lot of the pages into posts, but would that happen to break any links pointing to those pages turned posts? Or another option is to keep the pages and posts and create a bunch of subpages, then I would most likely end up with similarly named categories and top level pages. I would guess the name of the category needs to be unique from page titles right? And not just unique but very much differentiated than any page title (not posts but page titles). Maybe what I need to do is convert the pages that are not really unique into posts and put them in the category it fits with. And then keep those that are unique as top level pages. The architecture needs some serious work I think 🙂 Any help would be greatly appreciated.
Content Development | | ThridHour0 -
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 -
Network of small sites or one large site
Hi there, I am taking a group of mums through how to set up a blog and how to build up traffic to that blog. Should I suggest that we all blog on the same domain so www.dsdsds.com/myblogname or get them to set up their own domains. My aim is for everyone to support each other, share and link content so would it be more powerful if they were all on different domains or on the same one? Would love some insight as it is something I just can not get my head around this part. Thank you so very very much 🙂
Content Development | | vcasebourne0 -
Embed WordPress blog into site or /blog?
Hi, Just a quick question - I assumed it would be a better to have a WordPress blog in a sub folder rather than a sub domain however I just wondered would it offer any more / less value if I just embedded the WordPress blog into my existing code? Thanks, Dan
Content Development | | Sparkstone0 -
Filling Up Content For A New News Publishing Site
Hello, SEO Gurus. I have a client whom I've been working with for a few months now, and part of our service offering is to publish and promote fresh, daily content on his site's blog. This strategy has been a huge success thus far, he is very happy with the content, etc. Now, he is getting ready to launch a second site, which will be a news publishing site for his industry niche, and we will once again be providing the content on a daily basis: we're going to be producing 10 to 15 articles a day. It's a big operation for us. The client, however, is concerned that he doesn't want the site to appear "thin" on content in the early going, and asked if it would be possible to populate the new site with the articles we wrote on the other site's blog. My gut reaction to this is that it would be an exceedingly bad idea to do this. While we are the ones who authored the original content (and we've used author tags and publishing markup), the best bet is to simply start fresh. Besides that, seeing as we'll be pumping out tons of content on a daily basis, it won't take long to fill up the content coffers. That being said, I just wanted to run this past you all and see if anyone had any alternative ideas on how to use the old content without it being duplicate content. I was thinking that maybe designating all of the old articles with noindex, nofollow could be an option? Many thanks in advance for your time and attention. Sincerely, Mike
Content Development | | RCNOnlineMarketing0 -
How to make blog show in Google Trends Blogs Section?
Hi Guys, Is there something that I need to do to make my blog posts appear in the Blogs Section of Google Trends? I've noticed that there are blogs whose latest posts appear on the Blog section of Google Trends and would also like my blog to appear there if possible. Thanks in advance...
Content Development | | Trigun0