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
-
Website is not getting indexed
Hi,
Content Development | | Aman0022
Hope you all are doing great!
I have created a dog blog a few weeks back which talks about all things about dogs (http://pawspulse.com/). I am publishing couple of articles everyday which are more than 5k words long with proper keyword research but still Google is not indexing my content. My content is systematically categorized in proper categories related to dog guides, nutrition, accessories, dog breeds etc.
Can anyone help me how to get the website index faster fully. Any help will be much appreciated. Thanks0 -
Hi friends, I have a question. I want to know how Google detects the author of a content.
Hi friends, I have a question. I want to know how Google detects the author of a content.
Content Development | | Alopii0 -
Breaking a Big Website into Multiple Unrelated Sites
I have a big cluttered website that I want to simplify. There is content for patients, researchers, therapists who are looking for grants, etc.. Would it be a bad ideas to turn these into 3 or more, completely different sites with each focused on their specific demographic? Or should I just figure out how to organize the one site better? Thanks for your help!!!
Content Development | | bosleypalmer0 -
Where can I install a blog (not on the domain I'm optimising) which will help my search rankings?
I've got my hands tied, and I cannot install a blog like Wordpress on the domain I'm optimising. My question is, where then, would the next best place be? I've heard stories about subdomains being completely useless for affecting SEO of the root domain, and so anything external would probably have the same effect, correct? Would love to hear what some of you do in these situations. Cheers!
Content Development | | featherseo0 -
Help with HitTail
Does anyone else use HitTail? I am using it for a free trial at the moment. The idea was to get some keyword suggestions and write blog posts on these topics. My problem is that I am ranking on the top page sometimes spot 2 or 3 for the keyword terms that are being suggested, so what's the point? I don't see the point in writing for google searches in other countries so I delete them as it isn't an international business? Am I getting the most out of this or just missing the point?
Content Development | | Hughescov0 -
Do comments count as page content, as it relates to the length of content on a page?
I understand Google likes long content, and I make all my pages at least 500 words of unique and good content. But there is something I am curious about. Do they also count comments as content? The reason I'm asking is that I'm considering creating a Q&A site, where I'd control the questions, making sure they would be good ones and not duplicates, and then have people add answers. In reality, I'd be populating most the questions as first, and most definitely supplying a very good and long answer to questions. The answers would likely be in the form of comments, with highest ranked answers at top. So, I'm wondering what Google would think of a 100 word question, with a several hundred word answer in a comment, often followed by some other comments after that. Would it be a 100 word page or a 500+ word page?
Content Development | | bizzer0 -
New pages do not rank
Hello, Google caching the new pages, but is not appearing in search results. Why? site: www.papajogos.com.br
Content Development | | papajogos0 -
Fixing Wordpress URLs
I just redid our blog and I am using permalinks. I have the custom structure set to /%year%/%postname%/ and catagory - blank. When I run the XENU Link Slueth, it shows all my blog urls as broken, but the links work fine. However the url structure is www.example.com/2010/10/20/ and so on. I am worried about duplicate content too. Do you know how I can fix the url structure so only 1 or 2 urls are used?
Content Development | | hfranz0