The cert is for both www and not
<?php if((!(isset($_SERVER['HTTPS']))) || ($_SERVER['HTTPS'] == "") || ($_SERVER['HTTPS'] == "off"))header("Location: https://www.<your domain here>" . $_SERVER['PHP_SELF']); ?>
The cert is for both www and without. Thanks for the help.