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
-
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 -
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 -
Wordpress Overly Dynamic URLs
Moz is giving me an overly dynamic URL warning for around 30 or so of these on our blog. http://blog.domain.com/?page=products&do=domain-com-looks-like-a-blog-title I have no idea what's causing this, we have the permalinks set up for category/post and are running yoast. Anyone have any idea what it is? And how can I stop them being crawled. They link to the blog homepage when clicked, which is set to canonical in the head so it shouldn't do any harm - but i'd like to remove them all the same. Will /Disallow /?=page work in robots.txt?
Content Development | | SolopressPrint0 -
How to add Press Releases the site without it will be consider Copied ?
Hello guys,
Content Development | | WayneRooney
There is a Press Releases company that posting every month 2 Press Releases in their website about our company. I want to show the Press Releases post in our company as well.
How can i do it without that it will be consider Copied text ? Thank you0 -
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 -
Duplicate Page Content & Rel-Canonicals
The SEO Moz duplicate page content tool lists the following URL's as having duplicate content: http://www.savvyboater.com/1988-newer-8-tooth-15-hp-honda-outboard-props.aspx http://www.savvyboater.com/1988-newer-8-tooth-15-hp-honda-outboard-props.aspx?sort=PriceAsc&pi=2 The second URL is the price sorter/second page of the category and contains the following rel-canonical: | http://www.savvyboater.com/1988-newer-8-tooth-15-hp-honda-outboard-props.aspx"> Are we using the rel-canonical correctly in this case? If so, why does it continue to show up as duplicate content in our SEO Moz report? There are over 1,000 URLS listed in the report with the exact same issue. |
Content Development | | ironpac0 -
Content being copied from our product page hurting our site overall?
On our product pages, he have short descriptions and some bulleted lists. Resellers of our products, and many other sites who are not resellers are copying this content, often verbatim. While I'm not as concerned for the product pages themselves as we're hoping the category pages will rank, does this duplication of our content hurt our site overall? FWIW, our brand name is in our domain and often also shown on these sites that copy the content.
Content Development | | minutiae0 -
Asynchronous loading of google maps?
I'm working on a page that ranks the 10 best neighborhoods in our city. With each of the top 10 I have a 300x200 google map of the area. These maps are taking some time to load and slowing down the speed of the page. Is there a way to load these asynchronously? Or any other way to speed up the page?
Content Development | | MarieHaynes0