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
-
old posts / delete or update Big Site with more than 6000 articles
Hi, my site is related to education and i published more than 6000 articles from last 10 years, i naver delete but frequently update the Good Articles but some old articles that is not giving visitors, i did not update and some of them are short articles. i started in year 2021 and many articles in year 2012 to 2023 i write. please check my site and advise can i delete old out dated articles ? and countinue writing new articles with same topics, actuly from last month of August 2023 my site visitors lost with time from more than 70 percent.
Content Development | | bedah
thank so much for advise.
can i delete out dated content?
some of my contents are not ranking even i update before it was on top position but now even after update still other website is ranking more than me in current year.
#old Content ?
#update or delete?0 -
Hi friends, I have a question. I want to know how Google detects the author of a content.
Hi friends, I have a question. I want to know how Google detects the author of a content.
Content Development | | Alopii0 -
Tool to identify duplicated content on other sites
Hi does anyone know of a tool that could be used to identify if a site is using our content without permission? Thanks
Content Development | | turismodevino10 -
Content Writing - it should be for the main corporate site, blog or for social media?
Hi There, I have my main site : example.com and a related blog https://blog.example.com/ My management does not believe frequent content posting on the example.com My Queries 1- Will it help boost ranking of **example.com **if we share frequent content on our blog https://blog.example.com/? How much impact it has? 2- Every body says content is the king, Ok fine, but when you are not allowed to share it on the main corporate site, then where to share it? Blog and social media sites? please help. 3- We are in a business where clients do not bother to go on sites and read, so in this scenario is it correct to say that you hav to create the content for search engine consumption even when your clients dont need it/or have not in the habit of reading it? Hope somebody will enligten me caught in catch 22. Regards Tanveer
Content Development | | Sequelmed1 -
Any help on best practices to move blog domain?
Hi, I am going to move my blog hosted on wordpress.com to a folder under mysite.com. (e.g. mysite.com/blog/). I start to think after the blog has gone live there will be duplicated content issue because I am going to import my posts in last 2 years onto the new location. I what way can I avoid that happen? Can I set something up (e.g. 301 redirect) in my current wordpress.com account? Any advice. Please help! Thanks
Content Development | | LauraHT0 -
Wordpress.com to self hosted transfer?
How do you transfer a wordpress.com blog to a self hosted domain. The domain name is purchased through GoDaddy and will be hosted through GoDaddy.
Content Development | | bronxpad0 -
Word Press Page vs Post
Hello, I have a site that is dedicated to real estate. I designed it in dreamweaver. I also attached a blog to it with wordpress. Its self hosted. My question is what is the best way to increase my search rankings with wordpress? Page vs Post? Any tips?
Content Development | | bronxpad0 -
Blog Posts Not Getting Indexed by SERP's
Our blog posts are typically indexed rather quickly, sometimes within 10 minutes or so. Lately it seems like it is taking much longer, and a post from yesterday afternoon isn't appearing in any of the search engines. Can anyone give me an idea why this may be happening? http://www.360dwellings.com/2011-denver-parade-of-homes-luxury-home-tour/
Content Development | | 360ryan0