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
-
Indexing but Not Ranking
Hello, I have noticed this with some articles. Here is an example:
Content Development | | SneakerFiles
http://www.sneakerfiles.com/air-jordan-11-low-closing-ceremony-release-date/ For the term "Air Jordan 11 Low Closing Ceremony" I do not show up on the first 3 pages of Google even though the website has a back link to this particular page (maybe more). It's almost like some pages just disappear. Also I will rank very high (page 1) for a sneaker that is going to release for months then all of a sudden, about a week from the release, I disappear entirely. Not sure why this is (other in my field also rank on page 1 but stay). The site has been around for just about 10 years now with a large amount of backlinks (I don't go out and try to obtain backlinks unless it's something exclusive to share with others). Any help would be greatly appreciated.0 -
Wordpress Old Articles date - Update or Not
Hey there! Been reading around and I believe that there isn't a perfect answer to this question, but I surely want to know your opinion. It's a fact that google likes new content but also updated content, so whats your position concerning the wordpress articles. Meaning, when I decide to update articles from 2011 on its content, should I also update the date? If I make a search and an article from 2011 will be shown, its unlikely that I will click on it... So that you can understand my point.
Content Development | | prozis0 -
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 -
Can someone PLEASE help me find a solution to use a custom search engine for iPhones?? Thanks in advance!
Hey mozzers, I'm in quite the pickle today and would really appreciate some help! i need a way to have my members set their default custom search engine on their iPhones and androids to our sites search engine. Google chrome does on desktops but not iPhones. Thanks for your time/help, Tyler Abernethy
Content Development | | TylerAbernethy0 -
What is the CODE for Google Authorship?
I set up my Google+ but am not using WP nor do I have a Plug-In so I need to manually enter the string of code into the html of my blog post. Can someone give me the exact code to enter? I've read some info about this, but can't seem to get it right. Thanks!
Content Development | | tutugirl0 -
I want to remove some pages from my site with PR, what should I do with traffic?
I have a section of a site that I want to remove. It has a main page linked from the nav menu, and a half dozen subpages under that. The pages get some traffic and have ranks up to PR3, which is what my site's home page is. I'm no longer want to do these pages as they require tremendous upkeep and I'm not interested in keeping them going. So, I know if I just remove these pages and that's all, I'm going to pay for it somewhere with Google. What else should I do? I do't really have similar pages to direct them too.
Content Development | | bizzer0 -
What plugins & tactics are you using for Wordpress meta SEO?
Currently I use All-In-One SEO and I quite like how simple it is to setup and it's stable. Is that still one of the best ones? What are you using these days? Is it worth stripping out the superfluous meta tags that Wordpress now puts in? Is there any value to adding meta descriptions to all my Tag pages and if so, is there a good plugin that will auto magically create unique descriptions for these pages? Same goes for my paginated archives. Thanks!
Content Development | | flowsimple0 -
Self Hosted Wordpress Video plugins you have had success with.
Does anyone know of some good plugins for wordpress for self hosted video? Thanks in advance!
Content Development | | JasonJackson0