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 -
Would it be smart to have 2 different blogs on our site?
I run Wick Video - where we make animated videos for businesses. We are toying around with making blog/video content geared toward marketers, _and _creating blogs/tutorials geared toward designers and animators. Since it's two totally different groups, we've had the idea of making two separate blogs. Is that a good idea? Any websites currently doing this well?
Content Development | | WickVideo0 -
How do I redirect a page that no longer exists?
I changed the name of a blog article I wrote and the original name is giving a 404 error. I am not sure why it isn't being directed like the other articles I renamed to improve SEO. Since the webpage no longer exists, I don't know how to redirect it. I use Wordpress and Thesis. Thanks!
Content Development | | dealblogger0 -
Fresh content ideas for a static site?
I have an ecommerce site. My home page is set-up just as I want it. I'm not looking to redo it or change my site to a blog. Just looking for some new, different, SEO friendly ideas or concepts to keep it "fresh".
Content Development | | VictorVC0 -
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 -
How many pages is too many to add to a site at one time?
I have quite a bit of excellent content articles at my disposal and we would like to increase the number of pages on our site. I could, theoretically add 100's of pages at a time. Does anyone have a good sense of how much content added to a sight in mass looks bad to Google? My plan is to add approximately 50 pages a week to our site, which already has 4000 pages of content. This is relevant content, since we are a custom writing service and all topics are covered. Our content is what gives us great organic hits and orders. However, I would like to add more than 50 a week...how many is too many? Thanks and I appreciate thoughts and feedback! Karen
Content Development | | eworld0 -
Second Blog on the Same Site? Best SEO Practice
I would like to start up another blog which has more of a "technical" topic coverage vs my regular blog, which appeals more to non-techie business folks. If the goal is to drive traffic ultimately to the main site, should I do this second blog on a different domain, a subdomain, or try to incorporate it as a separate-but-equal blog on the same domain as the currrent one? What would you do?
Content Development | | JMagary0 -
How important is linking out to relevant, authoritative sites?
As I write blog articles for my site I often come across a situation where I'm quoting something from another site, or using a piece of data from that other site to make a point. I know it's nice and courteous to link to the source when I do this but from a pure SEO point of view, does it matter? Is there any benefit to linking from my site to other sites that are related and authoritative on the subject I'm discussing? I know I'll bleed off a little link juice to that external site that would otherwise go towards my internal links on the same page, but are there other benefits to linking out to known good sites? Is that any kind of signal to Google that I'm playing in a good neighborhood?
Content Development | | scanlin0