CodeIgniter Forums
base_url() returning ip instead of url in 3.1.3 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19)
+--- Thread: base_url() returning ip instead of url in 3.1.3 (/showthread.php?tid=67919)



base_url() returning ip instead of url in 3.1.3 - crouchkl - 04-24-2017

I'm having a weird issue where base_url() is returning the IP address of the server instead of the actual URL. I have the site in a folder on the server, similar to another site that I have that's running codeigniter 3.0.6.

The older site is https://www.klccomputing.com/tracker and is running 3.0.6 and works just fine.
The newer site is https://www.klccomputing.com/icingOnTheCake and is running 3.1.3, but returns the IP.

Is there some sort of configuration change that would cause this difference?


RE: base_url() returning ip instead of url in 3.1.3 - ciadmin - 04-24-2017

https://www.codeigniter.com/user_guide/installation/upgrade_300.html?highlight=base_url#step-19-make-sure-your-base-url-config-value-is-not-empty


RE: base_url() returning ip instead of url in 3.1.3 - crouchkl - 04-24-2017

I soooo stupid!!! I knew this and forgot to set it!!!

THANK YOU!!!