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
-
Over Optimised Magento Pages
We are working on a clients Magento site and we've added new copy which has a decent keyword density which is in line with best practice. When we run it through Moz we are getting a Key Word Stuffing alert saying the page has 27 keywords, where we can only see about 11. This is the page https://www.greatbeanbags.com/bean-bag-cushions The client is pushing back saying the page must have already been optimised before as our new copy has triggered the stuffing alert. But my guess is the page was already stuffed but buy some Magento code we can't see. Any ideas? #magento #Keyworddensity
Content Development | | Marketing_Optimist0 -
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 -
I want your SEO feedback for my site!
Hello Moz community, Please check out my website http://www.likechimp.com - I'd love to know your thoughts. I have never built links for my website but managed to do pretty well on the rankings organically. Lately, figures have dropped so need to get back up there on Google. Any tips from what you see already would be greatly appreciated! Example ecom product I sell: http://likechimp.com/facebook-shop/buy-100-facebook-event-attendees/ Thanks
Content Development | | xlucax0 -
Why is redirecting all broken pages to the homepage is a bad idea?
I have a site where all broken pages are redirected to the homepage. I've been told that it's a bad idea in terms of SEO. I just can't figure out why 🙂
Content Development | | VinceWicks0 -
Should i 301 redirect my blog to the respective site or just 404 all the blog pages?
Hi guys, We plan to close down our blog, which is a subdomain to our anchor site. I need advice on how to keep the link juice and its SEO value. Is it better to 301 redirect the blog to the homepage of our site, or just 404 all the pages of the blog? Thanks
Content Development | | dimicos0 -
Help with HitTail
Does anyone else use HitTail? I am using it for a free trial at the moment. The idea was to get some keyword suggestions and write blog posts on these topics. My problem is that I am ranking on the top page sometimes spot 2 or 3 for the keyword terms that are being suggested, so what's the point? I don't see the point in writing for google searches in other countries so I delete them as it isn't an international business? Am I getting the most out of this or just missing the point?
Content Development | | Hughescov0 -
How many words should be placed on a home page, category pages, and product pages?
To optimize content for a website, how many words should be provided for a home page, category page and a product page?
Content Development | | gallreddy0 -
Does a Google Map on the contact page help with SEO?
In regards to ranking organically for local search results (not google places), I'm wondering if there is any benefit to having a Google Map on my Contact page with our location pinned? If so, how important do you think it is?
Content Development | | pharcydeabc0