How to noindex the https version of your pages

Your site has SSL enabled so each page can be http OR https.

How to you avoid having duplicate content?

Add this simple php code to your page header:

if ($_SERVER['HTTPS'] == "on") {
echo "put the no-index meta tag here";
}
?>

Please be sure and TEST this on your own server throughly so as to not inadvertently no-index all your pages!