CodeIgniter Forums
Weird issue after going from localhost to server - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Weird issue after going from localhost to server (/showthread.php?tid=79416)



Weird issue after going from localhost to server - MBVape64 - 06-12-2021

Hello,
I developed my CI application on localhost,
After moving it to a live server, I changed the config in Config/App.php to reflect my new URL.
However, all the links that use base_url() still point to localhost, making my site unusable. Already tried removing cache etc, but no dice.
Anyone have any idea why this happens?


RE: Weird issue after going from localhost to server - includebeer - 06-12-2021

You probably have a .env file with localhost in it.


RE: Weird issue after going from localhost to server - MBVape64 - 06-12-2021

Ok, I feel very stupid now.

That was it, thanks!