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
-
Shopify Blog vs Wordpress
We are moving our Ecommerce site to Shopify. Currently we run our blog on Wordpress and I'm wondering if anyone has an opinion on using the Shopify blog vs Wordpress?
Content Development | | Glaze0 -
Can You Get Better Ranking/Conversion by Reducing the Number of Pages?
I am seriously considering reducing the number of pages in a section of our website. We currently have 39 webpages. I'm considering reducing it to 6. The site architecture would make more sense giving recent design changes. And we could focus more attention on improving conversions from these 6 new pages. But I'm considering doing this mainly because I think it'll help us do a better job of communicating to and converting our audience. The new pages would be longish. The existing 39 pages are by no means stubs, but these new pages would be longer. Anyway, what I want to put out for discussion is the SEO impact. What are the good SEO reasons for reducing the number of pages? Can 6 well-done pages out perform 39 pretty-well-done pages? How many queries can one page rank for well? Is this SEO suicide? Honestly, there's a part of me that cannot believe I'm saying this, but I think my heart is in the right place.
Content Development | | justin-brock1 -
Google Authorship and the "Fishkin" Outburst! Sorry Rand ;)
Should companies now shift away from creating great content and invest the time and money into something else? After Rand tweeted his frustration at @JohnMu in relation to "Authorship CTR's", it got me thinking - should we really be blogging as much as we should? https://twitter.com/randfish/status/481948721031024641 I'm certain Google ditched author profile images to improve "mobile UX" and "CTR's" for "paid advertisers". So what I would really like to know is - should small businesses continue to focus on developing great content? How has your marketing strategy changed?
Content Development | | GaryVictory1 -
Is Wordpress good for SEO
Is Wordpress good for SEO? If so, any tips? Do I need to set up as a subdomain so www.blog.mysite.com? Thanks
Content Development | | Studio330 -
Embed WordPress blog into site or /blog?
Hi, Just a quick question - I assumed it would be a better to have a WordPress blog in a sub folder rather than a sub domain however I just wondered would it offer any more / less value if I just embedded the WordPress blog into my existing code? Thanks, Dan
Content Development | | Sparkstone0 -
Is this a good website design for attracting google and readers
hi, we are looking at re-doing our website and would like to know if this site is a good example of attracting traffic and google. what i mean is, they only have the title of stories and not much content, please take a look and let me know if we can learn any lessons from this site or if they should be adding more content http://www.femalefirst.co.uk/
Content Development | | ClaireH-1848860 -
My WebSite has two sections with overlapping, or redundant articles on the same topics. Google is only listing one or the other article in Search Results. What should I do to have both pages (similiar but unique content ) to be listed?
My Web Site has two sections with overlapping, or redundant articles on the same topics. Google is only listing one or the other article in Search Results. What should I do to have both pages (similar but unique content ) to be listed? Example: http://www.womenshealthcaretopics.com/pregnancy_week_12.htm http://www.womenshealthcaretopics.com/pregnancy_12_weeks.html
Content Development | | docjamesmd0 -
Transfer existing blog to wordpress.org or start a new blog
My blog sits on the wordpress domain http://gardenbeet.wordpress.com/ - it has good page rank and has around 300-400 visits per day - should i move it to my website or Should I start a new blog? i have a page set up for it on my website but it now has good rank http://www.gardenbeet.com/content/design-blog.html - and now want to keep this URL am a bit confused - what is the best strategy in terms of SEO?
Content Development | | GardenBeet1