Moving your whole project into a new subdirectory |
[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
[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?
[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. |
Welcome Guest, Not a member yet? Register Sign In |