when I had my site on development environment - it was url: testurl.com
Now on production server my codeigniter app's address has to be someurl.com/mysite/
I moved it there, and everytime I'm trying to run some function, example /home/test - it gets me into someurl.com/home/test - which is WRONG.
It has to be someurl.com/mysite/home/test - How to fix it? I did set
$config['base_url'] = someurl.com/mysite/
Base URL should be absolute, including the protocol:
If using the URL helper, then
base_url()
will output the above string.Passing arguments to
base_url()
orsite_url()
will result in the following (assuming$config['index_page'] = "index.php";
: