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!
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
-
Help with Alt Image
Hi. Moz is alerting me that my blog has no alt image. I actually don't have an image inside the blog but it's in the header, as part of my wordpress theme. Now when I check this image in the header, the alt image keyword is there. I'm not sure how to fix it. Please help.
Content Development | | VAPartners0 -
Hi, on SEO article submissions, do I only include the link to the page I am trying to promote or is it best practice to also include a link to home page or parent page?
Good day. I am writing articles for submission, I would just like some help with the page structure. Do I only include the link for the page that I would like to promote or is it advisable to include other page links, such as home page or the parent category too? Any help would be appreciated
Content Development | | thebedguy0 -
How realistic is it to get to googles first page
Hello, I cannot say what my website it for, as it is very unique ( or will be for the next 4-6 months ). I am currently developing this site now with the view to launch next month. I will be doing every bit of on-site SEO as possible. Spending countless late nights perfecting it, referring to MOZ checklists and blogs. When the site goes live my team of 4 will be constantly marketing/SEO for around 5 hours each a day. Things like doing guest blogs, normal blog posts, link building .... essentially all aspects that need to be covered. As well we are consulting with an SEO company to help us too. I have 1 main keywords which I need to rank for ( I can't show these ). This keyword has a 62% keyword difficulty, however, the website with number 1 position for this keyword only has 8 Domain Authority and 23 page authority. Given the fact 4 of us will be doing non-stop of-site SEO, aswell as paying an SEO company and in general my content and site structure will be a lot more releveant for the user. Is it possible for me to rank in the top page of google within 3 months of launch, and become rank 1/2 after 4-5 months? Thanks
Content Development | | Matthew_smart0 -
How do you rank a site in a very competitive market?
Do you focus on article submission, social media backlinks or what?
Content Development | | shauna70840 -
Any Idea who i can contact at Google Finance?
Hi Everyone, I run a popular news site and we are already working with Yahoo Finance, CNN, USA Today, CNBC, etc...
Content Development | | fattestcat
The one site we really also want to start working with is Google Finance - but there is no way as far as i can see of getting in touch with them. Our content is the best in our sector and every news site we pitch we almost always start a relationship with - i just need an in. Does anyone know who to contact or how to get in touch with them? Thanks for any advice. James0 -
One Page Website Blog Content Question
Hi guys, I'm new to the art of SEO and am learning every day from all the fantastic content here, I have a question that I can't find an answer to, hope it doesn't stump you like it has me... I have a one page website (www.neilwilliamsvoiceover.com) that I need to put more content on for SEO purposes but needs to be kept as one page. I've set-up a blog via blogger, and have that on the website but it's in iframe, which I've now discovered is ignored by search engines. So, my question is, is there a way to pull my blog feed into the website and have it recognised by search engines as content for the website? Would I use an RSS feed or feed burner or something else completely?! Thanks for your time and help in advance.
Content Development | | BamMK0 -
I have a domain with rank no 1 in google web search!
I have a domain with rank no 1 in google web search! When I search for the keyword which are the domainname in google adwords, keyword search I get 1.200.000 searches in that keyword. Our domain have only 10 visitors a day - why is that?
Content Development | | fredrecokonsult0 -
Anyone know of any other guest blogging sites like myblogguest?
Hi, I am a member over at myblogguest, but im wondering is this the only service online for guest blogging? Cheers
Content Development | | activitysuper0