CodeIgniter Forums
How to change site_url() value in localhost? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: How to change site_url() value in localhost? (/showthread.php?tid=84970)



How to change site_url() value in localhost? - postgres - 11-29-2022

Dear Friends,
I download my CI 3 web site files from live to localhost. But after changing the base_url in application/config/config.php , when I try to
login it goes to live site. When I look on form action I can see the live server URL value instead of local. In code I can see using site_url().
Where I can change this value to work on localhost ? Please advise.

Thanks
Anes P A


RE: How to change site_url() value in localhost? - kenjis - 11-29-2022

It is odd.
site_url() generates the URL based on base_url.


RE: How to change site_url() value in localhost? - postgres - 11-29-2022

(11-29-2022, 07:53 PM)kenjis Wrote: It is odd.
site_url() generates the URL based on base_url.

Your answer is perfect. Thanks kenjis...