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
-
Content Duplication Issue On Content Publishing Site
I am running Free Article Posting site but I discover people are posting their content which already has been published on different sites before. What should i need to do in order to save my site from Google penalty.3 waiting for your kind help in this regard Thanks in advance
Content Development | | Mustansar0 -
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 -
I want to swop a site to an existing domain. i.e. it was http://A.com and now want it to be B.com...please help
The company I have started working for as two main websites. The main website (A) is out of date and not very functional but has the companies prime domain name. The other site (B) has their ecommerce engine. I'd like to make B the prime site i.e. take over A's domain name. Huge warning bells are going off regarding the SEO of this decision. Any advice or suggestions in how to go about this without destroying the company's SEO would be greatly valued.
Content Development | | SoutherlySwell0 -
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 | | Pzabarko1 -
How Many Words on Page for Content When Optimizing a K.W.
I want to hired a writer to create content. When optimizing a keyword on a page, how many words (minimum) should I have on that content. Some writer use ''Word Count'' when fixing a price for text, before asking a writer, I need to specified ''How many word'' to included in the content. Thank you,
Content Development | | BigBlaze2050 -
Does having blog on subdomain weaken primary site's SEO?
I have a Joomla site with a WordPress subdomain that I'm wanting to use as a learning center. It's far more simple for new blog editors and publishers to learn that over Joomla. The issue I'm facing is trying to figure out rather having the blog put into the primary domain instead of a subdomain will hurt my ratings at all? Where I got the idea that it may hurt ratings is due to how (from what I understand) search engines will see a subdomain slightly different than the primary domain. Thank you for any help!
Content Development | | sDevik0 -
What are tier 1, tier 2, tier 3 keywords (pages)?
I am seeing these terms, but for the life of mine I can't understand what they are. Could anybody explain that in layman's terms? Thanks.
Content Development | | VinceWicks0 -
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