<p>I would like to use a secure SSL login on my website! I have not used SSL before, so I am looking for some good reading. Can anyone tell me where I can find some sample code of SSL snippets or page code. (Not too technical)</p>

<ul>
<li>I do have a static IP</li>
<li>My host is set-up to handle SSL Pages.  </li>
</ul>

<p>Interested in: Basic page code. / Tree structure. / Other </p>

<p>Paul   </p>

My first thought would be to simply call a function to redirect to the https: version of the current page when you need to be secure.
Some code like this:
```
```
if($requireSSL && $_SERVER['SERVER_PORT'] != 443) 
{
   header("HTTP/1.1 301 Moved Permanently");
   header("Location: https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
   exit();
}
```
```
Reference