<?php
if ($_SERVER['HTTPS']!="on")
   {
       header("Location: https://".$_SERVER['SERVER_NAME'],TRUE,301);
   }
?>
