Buying Help me stop google indexing https posts on my wordpress blog - WILL PAY

Discussion in 'Programming' started by AlwaysThinking, May 17, 2011.

  1. #1
    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.
     
    AlwaysThinking, May 17, 2011 IP
  2. Fracisc

    Fracisc Well-Known Member

    Messages:
    3,670
    Likes Received:
    10
    Best Answers:
    1
    Trophy Points:
    195
    As Seller:
    100% - 1
    As Buyer:
    50.0% - 1
    #2
    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.
     
    Fracisc, May 17, 2011 IP