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
-
Duplicate product description on the same page
Hello, I've got a really simple a basic question : is it an issue to put an excerpt of a text at the begining of a page, with a "jump to full text" link at the end of the excerpt ? So the first part of the text will be duplicated. A solution would be to hide a part of the text and reveal it with a "read more" button, but we don't want to do that, we want users to be able to read the full text just by scrolling + we want to put an excerpt "above-the-fold" content It's a product page. A second question : we've got duplicate content between our brand category pages, and the related product page, because the presentation text of the brand is shown on the product page + on the brand category page (it's presentations of distilleries, so it's a valuable content for the customer, we want to show it directly on the product page). Do you think it's a big issue ? Or maybe we can think : "ok, there is plenty of other text on those pages, so it won't matter" ?
Content Development | | Colage1 -
Followed all on-page rules no listing for target keyword :(
Hey guys, long time Moz user, first time forum asker. I recently went all out and tried to create above and beyond blog content, while also making sure to keep it SEO friendly. The page is indexed but does not show anywhere at all for the target keyword. Here is my article URL below. http://blog.storitz.com/2016/04/75-moving-tips-preparing-packing-beyond/ I checked it on the onpage ranker on MOZ and got a B. Here are some theories on maybe why it's not ranking at all. It got knocked for keyword stuffing. Although my page has tons of content and the keyword density is at a reasonable rate, I still used the keyword 22 times. Another is my wordpress automatically set my robots tag to "Noodp". Wanted to get some feedback and see if there is anything you guys might have some insight into before I start making adjustments here. Appreciate it in advanced!
Content Development | | Storitz0 -
Any Idea who i can contact at Google Finance?
Hi Everyone, I run a popular news site and we are already working with Yahoo Finance, CNN, USA Today, CNBC, etc...
Content Development | | fattestcat
The one site we really also want to start working with is Google Finance - but there is no way as far as i can see of getting in touch with them. Our content is the best in our sector and every news site we pitch we almost always start a relationship with - i just need an in. Does anyone know who to contact or how to get in touch with them? Thanks for any advice. James0 -
Is there a way to set up a wordpress site so that the content is changed based on a location?
I have a site I am building that has information that shifts based on weather conditions and location. Is there a way to have information sort based on a users geographic location? I am trying to figure out the best way to do this.
Content Development | | Ron_McCabe0 -
Google Slower to Trust New Pages than One Year Ago?
It seems to me that Google is slower to trust (and rank) new pages today than in the past. I used to be able to put up a new page and it would go right to the top of a competitive SERP. For about the past year when I launch a new page it starts deep in the SERPs, sits there for a few weeks, then starts slowly moving up. These pages still eventually rank on the first page of Google - often at #1 or #2 after wikipedia or another strong site - but it can take a few months to get there, several months in a competitive SERP. These are not "hot news" topics where freshness is an important factor. Instead they are product pages or general information articles. Anybody else seeing this? [ Just stabbing in the dark here... I am wondering if Google is relying more on visitor behavior these days and the delay is while they collect data?... Just stabbing in the dark.]
Content Development | | EGOL0 -
We are contemplating whether to put a blog on our site.
The reasons we want to put one up is obviously for SEO reasons but since we are a small business with limited resources the higher ups are worried that we will start strong but slack off. Some feel that it's worse to start and not keep up the blog as it gives an unprofessional vibe to google and other users. I maintain that I will try to keep it up to the best of my abilities and that it's better to have something than nothing. What do you feel and do you have any experiences in this?
Content Development | | EcomLkwd0 -
URL structure on moving from old nukedit site to Drupal
I am currently rebuilding a site in Drupal. The old site was in Nukedit and all the urls end in .asp. Given the new urls will not end in .asp is there any point in matching the rest of the url or will using 301 redirects (to better seo'd pages) be sufficient to minimise any (temporary) ranking loss?
Content Development | | chunki0 -
What is the best way to get around duplicate content when you are advertising exactly the same content on two different sites?
I am currently trying to improve exposure for an online degrees website but the content for the degree program pages is exactly the same as the company's main website. What would you suggest for getting around the duplicate content issue as a lot of the curriculum content will obviously be the same for each module, etc? Thanks
Content Development | | BeattieGroup0