Welcome Guest, Not a member yet? Register   Sign In
Moving your whole project into a new subdirectory
#1

[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
#2

[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?
#3

[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.




Theme © iAndrew 2016 - Forum software by © MyBB