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
-
Wordpress Blog Pages, Duplicate Title Tag
Anyone have any experience in fixing the duplicate Title tag on a Wordpress blog multiple pages Basically the title tag remains the same on the pages /Blog/ /Blog/Page/2/ /Blog/Page/3/ My good friend Yoast Plugin doesn't seem to of resolved this (Unless i have missed something?) I don't really see this to be effecting anything and wouldn't of through it would either, but it would be nice to not see the notification within Moz site crawls and campaigns etc, its more of a cosmetic problem Any solutions ? Thanks James
Content Development | | Antony_Towle0 -
Google authorship works on posts, but not on root domain.
When I check Google authorship via the tool Google provides, it says I am confirmed for individual posts, but not for my root domain. I’m using WordPress, and individual posts are fine, but not the blog as a whole. I am the only author… and have given it a week, thinking perhaps it needed time... but no luck. Any suggestions? Thank you!!
Content Development | | VictoriaElizabeth0 -
Should a business blog be on a separate site or on the ecommerce site itself?
Hey there. I'm a new Pro member and this will be my first question on the Q&A. Thanks in advance for your responses. I'm the owner of an ecommerce site that sells custom candles. www.prometheancandle.com in case anyone wants to take a peak. I've become somewhat of an expert on all-things-candles over the past 4 years and I am thinking about starting a candle related blog. My question is this. Should I build this blog on the ecommerce site itself, say @ www.prometheancandle.com/blog.php, or should I devote a separate site to answering candle related question, history of candles, etc? At first, I was thinking that the blog should remain on the ecommerce site so readers would have easy access to the shop to be able to purchase products. But then it occurred to me that people who may be interested in reading up on candle history, candle making, meditation & candles, etc., may not want to go to an obviously ecommerce site to do that. I know Google values informational sites more than ecommerce sites (at least I think they do), so that encourages me to lean towards the separate site. Well, I may have just answered this question myself, but I'd definitely be interested to hear feedback and opinions. Thanks so much guys and I look forward to hearing from you.
Content Development | | Devynn0 -
Site with mostly images
I am working on a site which will be a portfolio of many photographers - hence there will be a lot of images - each image will have an external link to the photographers site, there will be a very small description and a lot of tags (for the site indexing to work) Bearing in mind that the site will consist of 90% images, 9% tags and 1% text is there a chance the site will rank well for my keywords (which will be the tags)? There will also be social comments e.g. facebook or discus but I want to keep the amount of text to a minimum.
Content Development | | ribandhull0 -
Which is the best site to host photos on?
For SEO and in general, which is the best website to host photos on and why: Flickr.com or Picasa.com or Whosay.com?
Content Development | | tennisexpress0 -
Images for WordPress
I'd be grateful for any advice regarding sourcing, adding & attributing images/photos for my WordPress blog. Budget is tight so have to rule out paid stock libraries, but I heard that Flickr images can be used under Creative Commons providing they are correctly attributed. eg. http://www.zdnet.co.uk/news/business-of-it/2011/04/07/mps-criticise-bbc-siemens-38m-contract-failure-40092428/ eg 2. http://www.zdnet.co.uk/news/networking/2011/10/05/bt-lines-up-300mbps-broadband-launch-40094109/ Example 1 does not seem to link back but example 2 does. Are there any rules on this? I have looked at some plugins: Insights, iFlickr, WP Flickr Manager, Photo Dropper. Looking to save time by streamlining the process of adding images, resizing and attributing. Many thanks.
Content Development | | martyc0 -
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 -
Posting youtube videos on your site-use irframe or "old embed code"
If you choose "embed" now, youtube gives you the choice of using an iframe: <iframe width="430" height="352" src="http://www.youtube.com/embed/0-nKXALtHWs?rel=0" frameborder="0" allowfullscreen=""></iframe> or, the old embed code: <object width="430" height="352"><param name="movie" value="http://www.youtube.com/v/0-nKXALtHWs?version=3&hl=en_US&rel=0"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/v/0-nKXALtHWs?version=3&hl=en_US&rel=0" type="application/x-shockwave-flash" width="430" height="352" allowscriptaccess="always" allowfullscreen="true"></object> Is either better when it comes to seo?
Content Development | | MarieHaynes0