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
-
What is the best tactic to fix thousands of product descriptions on an eCommerce site?
I've asked this to dozens of people already, but I still haven't found a satisfactory answer... perhaps someone here can help me: I keep hearing how important it is to update product descriptions to avoid duplicate content, decrease thin content and improve conversion rates - but for any new eCommerce sites like ours, with thousands of listings going up at once, this is nearly impossible to control. Outsourcing is clearly a bad idea from an SEO standpoint as well as a UX standpoint... But are there any other options? Should I let go of my other responsibilities and focuses as an in-house SEO manager and virtually stop, drop and roll out unique product descriptions? That would be a project that would take me at least a year to complete. Do I just give up? Do two descriptions a day and hope for the best? What do you guys think? What have you recommended for others? I can't imagine our company is alone in this dilemma. Thanks in advance! Hanna
Content Development | | whiteonlySEO0 -
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 Google judge about duplicate content?
With recent Search engines updates one thing is clear we cannot ignore content. Content marketing definitely going to be most important part of our SEO strategy. I have few doubts about content marketing (circulation of content over web) where I want suggestions of community members. There would be different thoughts so I would like to have as many as responses to know what majority thinks: When we are writing guest posts, does article needs to be unique with each and every blog we are writing or we can safely circulate one good piece of content to 10-15 blogs who are interested in our creative. We have written a good blog post for our own domain. Apart from social sharing should it be posted to other related blogs too or it should be unique to our domain only. Social sharing, mentions, like of blog matters in rankings?Seems yes they do but need to know what majority thinks. Finally what is the safe number to circulate your content over web.
Content Development | | EG0CENTRIX0 -
Does Google really ignore Noindex pages?
Assume I may have some pages of my site that don't have a lot of text on them, and I have to keep them on the site. Let's say there are no more than 50 like this out of 400 great pages, and the ratio of great-to-short pages continues to increase. If I no index the short ones, will Google really ignore them in search? Will they ignore them enough to not downrank my site due to the short, noindexed pages? I know, theoretically, they are supposed to ignore them, but I don't always trust all the rules.
Content Development | | bizzer0 -
Need help deciding how to display directory listings in way Google will like best
My blog site currently has maybe 100 posts and I do about 7-8 new a week. I am creating a directory for an this site, which will end up eventually being a few hundred or more entries eventually. In the directory browse/search listing, each directory listing will have a title and a short description (one or two lines) and will show about 10-20 per page. And then the user can click an entry to see more details for the particular directory listing. This is where I have a choice, and I want to know what is the best for my site, in Google's eyes of course. Options: 1. The listing detail is displayed on a separate page. 2. The listing detail is displayed below the entry that was clicked, on the same page, by use of jquery to slide down the other content blow it to make room for it. (It actually looks slick, I've tried it). If I were writing full, unique pages for each listing detail, I'd choose option #1. But the vendors are submitting the content. It's possible they might just copy and paste their site's About page into it, or they might not even add any more detail other than their address. I can't control it. So, if going with option #1, let's say a third of the vendors add nice unique content, a third paste in some dup content, and a third just leave it blank (there would still be an address, couple line short description, and a title on the page). Would this situation be good, not good or neutral for my site? I'm not sure if adding additional pages, maybe half to two-thirds of which could be somewhat duped or of minimal word length would be bad or neutral for my site overall. As for my existing and ongoing blog pages--they are all unique, long and Google seems to love them.
Content Development | | bizzer0 -
Related posts Wordpress plugin
Hi, I was wondering what Wordpress plugin you are using to add related posts to your blog posts. I would need one that allows you to pick the related posts manually and doesn't break the on-page SEO. Thank you! George
Content Development | | georgesan0 -
4 sites - 4 keyword sets?
Hi, I have 4 domains and 4 keyword sets i.e. penny stocks mutual funds stocks day trading My question is: what is the better approach: Have each site around one set e.g. everything about "penny stocks" Site A - penny stocks Site B - mutual funds Site C - stocks Site D - day trading Create 4 categories in each website about each set of keywords? Site A - penny stocks | mutual funds | stocks | day trading and the same.. Thank you, Alex
Content Development | | pwpaneuro0 -
WordPress Rankings ?
It looks for me that WordPress sites get to rank better for some reason ... I dont know wil you will agree with this one with me or not. The question is... do they hold their rankings for the certain keyword with a time? or they lose them as fast as they get them? Shouldn't be content rank the same across all platforms? Content is a content and it dosent matter how it's presented? is it the case with google? For example: Create Wordpress site for only 3 products, provide good content for those 3 products... and sell them with some of shopping cart plugins (any recommendations on the plugin?) Will I get rankings faster and keep them?
Content Development | | DiamondJewelryEmpire0