Answers for "https issue in php"

PHP
0

force https with php

if($_SERVER["HTTPS"] != "on")
{
    header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
    exit();
}
Posted by: Guest on December-18-2020
0

serve https with php local

php artisan serve
cd <path-to-ngrok>
./ngrok http localhost:8000
Posted by: Guest on October-06-2021

Browse Popular Code Answers by Language