Created
May 31, 2013 14:01
-
-
Save ebinnion/5685188 to your computer and use it in GitHub Desktop.
Dynamically set CodeIgniter Base URL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$root = "http://".$_SERVER['HTTP_HOST']; | |
$root .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']); | |
$config['base_url'] = "$root"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how to configure web with Dynamically set CodeIgniter Base URL, if this apps are in ecs container with 3 web site with different ip address >> http://3.15.23.138:86/ & http://3.15.23.138:87/ & http://3.15.23.138:88/