Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

force https with php

if($_SERVER["HTTPS"] != "on")
{
    header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
    exit();
}
 
PREVIOUS NEXT
Tagged: #force #https #php
ADD COMMENT
Topic
Name
3+6 =