Linux KNOWLEDGE by Spreech 

 home |
Too Cool for Internet Explorer

php SSL Verbindung prüfen/erzwingen

Bloged in php by manuel.schwab Dienstag Juli 21, 2009
if ($_SERVER[‚HTTPS‘] != "on") {
    $url = "https://". $_SERVER[‚SERVER_NAME‘] . $_SERVER[‚REQUEST_URI‘];
    header("Location: $url");
    exit;
}

Keine Kommentare »

No comments yet.

Leave a comment


RSS feed for comments on this post. TrackBack URI

Powered by Wordpress, theme by Dimension 2k