CodeIgniter Forums
finding location of domain - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: finding location of domain (/showthread.php?tid=50956)



finding location of domain - El Forum - 04-15-2012

[eluser]icemetal[/eluser]
hello I have a codeigniter script that only on the hosting site with one domain, and I want to change to work on localhost, any ideas where is the file to change it to work on local host?


finding location of domain - El Forum - 04-15-2012

[eluser]Samus[/eluser]
it should work on localhost by default if you have a server setup.

you may need to change this though:

Code:
$config['base_url'] = '';

to your localhost url.


finding location of domain - El Forum - 04-15-2012

[eluser]icemetal[/eluser]
Very sketchy notes Samus, yes you have to change that, but for others who have the same problem you change it on /applications/config/config.php


finding location of domain - El Forum - 04-15-2012

[eluser]Samus[/eluser]
[quote author="icemetal" date="1334504914"]Very sketchy notes Samus, yes you have to change that, but for others who have the same problem you change it on /applications/config/config.php[/quote]
Sorry, I considered that pretty basic knowledge.