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 to complain about copyright theft and stop it
Hi, getting really fed up now. we have for years had nothing but trouble with people stealing our content. I have checked this morning and have spent the last three hours contacting sites of the theft of our content. This is now happening on a weekly basis where i am spending hours contacting website owners. can anyone please let me know how i complain to google and how can i stop this theft from happening
Content Development | | ClaireH-1848860 -
Page Content?
So I have review pages for websites on my site, each website has a review around 400-500 words. Recently I had my writers write 2 additional articles on each site but about something they have there. My thinking was interlinking them allowing them to rank individually etc. However now after looking around etc.. I see that content that is upwards of 1000 words or more might be more powerful and the way this is all written etc.. I could easily put it all on one page.... So my question is do I go with 3 pages or 1 page. I can see strength in both
Content Development | | dueces0 -
How can I resolve a duplicate page issue?
I have (an attached) report that shows duplicate content for a blog page and I'm not sure how to resolve the issue. The blog/website is hosted on wordpress.org, maybe it's something to do with having to add categories or tags - can anyone help please? SDtXT.png
Content Development | | lindsayjhopkins0 -
Wordpress post templates
Hi everyone! What I need is a way in Wordpress for the author to select a category for their post, and then have a template come up with some fields in addition to just the large field where you write your post, where the author can add some additional information. Then on the final post, have that information added to the top in some format that I (as the admin) can control. What I'm doing is setting up an internal company blog so our employees can have more visibility across teams. Some categories of posts will always include the same information, like release numbers, conference attendance, yes/no conclusions, among other information. If there's a plug-in for this, free or not, that would be great! If you can't tell I'm a Wordpress noob... so please bear with me. 🙂
Content Development | | john4math0 -
Multiple Domains pointing to one site?
Due to takeovers, different strategies and a certain amount of historical lack of control, we have a dozen sites covering many different specialist areas of our business. To make things easier to manage, we are thinking of merging website content, then repointing some of the domains to the new section within the larger website. The content on each site is all different, but the subject matter is sometimes the same.This will make content, design and management much easier. We propose to choose the best content, then repoint the underperforming domains. Is there an seo risk of having many domains pointing to one site?
Content Development | | GardenGamer0 -
Press Releases and Duplicate Content on Event Related Site
I have a site that lists events. I ask those submitting events to submit original content if possible, but frequently they submit press releases which are already published elsewhere. I rewrite some of the press releases, but do not have time to rewrite every press release that comes my way. I want my users to get a comprehensive list of events, but I don't want get a penalty for duplicate content. What is the best solution?
Content Development | | andywozhere0 -
Google still caching old site
Hi all, We just acquired a new domain that was being squatted on by a reseller for a very long time and on the 5th June migrated our site over to it, replacing their advertising holding page. The domain is http://primate.co.uk It's been a week now though and Google hasn't seemed to have updated it's cache. Doing a search for 'primate.co.uk' in Google lists the site but with the old holding page description. Web master tools doesn't report any errors or issues with the site. Does anyone know how we can get Google to index the domain and update it's cache? Cheers, Gordon
Content Development | | Primate0