CodeIgniter Forums
Moving your whole project into a new subdirectory - 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: Moving your whole project into a new subdirectory (/showthread.php?tid=4503)



Moving your whole project into a new subdirectory - El Forum - 11-28-2007

[eluser]jasonswett[/eluser]
I'm in the process of going live with a CodeIgniter project. On the development server, the project is at at URL like http://localhost/. On the live server, I need my project to exist at http://live-site.com/newproject/.

Is there a way to tell CodeIgniter that all my URIs now need to start with /newproject? I tried changing the $config['base_url'] but that didn't seem to work.

Thanks,
Jason


Moving your whole project into a new subdirectory - El Forum - 11-28-2007

[eluser]Majd Taby[/eluser]
If you coded all your links properly, it should work w/o a hitch. I know, i recently did that. Could you post your base_url? also, how do you setup your links?


Moving your whole project into a new subdirectory - El Forum - 11-28-2007

[eluser]jasonswett[/eluser]
The base_url solution actually did it, I think. My problem was that I had leading slashes in my links form action attributes.