thats right or maybe try this one:
Quote:
Allow Googlebot to index all http pages but no https pages
Each port must have its own robots.txt file. In particular, if you serve content via both http and https, you’ll need a separate robots.txt file for each of these protocols.
For your http protocol (http://yourserver.com/robots.txt)
User-agent: *
Allow: /
For the https protocol (https://yourserver.com/robots.txt)
User-agent: *
Disallow: /
askapache.com
|
or visit:
http://www.askapache.com/seo/seo-with-robotstxt.html