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. I will pay for the resolution. You can name your price. 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 and I can pay using paypal.
I would use this: if ($_SERVER['HTTPS'] = "on") { echo '<meta name="robots" content="noindex, nofollow">'; } Code (markup): This will add the nofollow and noindex meta tags in your https pages but not on your classic http's. Try it out and PM me if you need more help.