- Go to the
App.php
file; - In section
public $baseURL = 'http://localhost:8080/';
, and replace with this script:
public $baseURL;
public function __construct()
{
if (!empty($_SERVER['HTTPS'])){
$root = "https://".$_SERVER['HTTP_HOST'];