From application/config/config.php
file ,you can set your base URL.Base URL should be absolute, including the protocol:
$config['base_url'] = "http://somesite.com/somedir/";
If using the URL helper, then base_url()
will output the above string.
For url routing you can use like this $route['account/login'] = "auth/login"