Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $config['base_url'] = ($_SERVER['SERVER_PORT'] == 443 ? 'https' : 'http') . "://{$_SERVER['HTTP_HOST']}/
- $root = "http://".$_SERVER['HTTP_HOST'];
- $root .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
- $config['base_url'] = "$root";
Add Comment
Please, Sign In to add comment