/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Determine Subdirectory of Install Path, If Any // If Not Present, Will Result in / // If https being used, set base_url to https $http_or_https = (!isset($_SERVER['HTTPS']) OR strtolower($_SERVER['HTTPS']) != 'on') ? 'http' : 'https'; $config['base_url'] = $http_or_https ."://". $_SERVER['HTTP_HOST'].$host_url;