Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

dynamic base url codeigniter

defined('BASE_URL') OR define('BASE_URL', (is_https() ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']) . '/');
$config['base_url'] = BASE_URL;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dynamic #base #url #codeigniter
ADD COMMENT
Topic
Name
7+6 =