I want to change domain name of my CodeIgniter site. How can I do this?
Example I have now example.com now I want change it to domain.com.
I have changed config.php file
$config['base_url'] = 'http://domain.com';
After edit config.php file only home page working with new domain. But other URL working with old domain.
You need to use site_url() helper function in order for CI to use the base domain. How do you output links? can you show us an example from a view?
Seems like you have defined absolute path on links of other pages. If you have followed url helper of CI, you won't have to do all these. Use site_url()
function on all your links.
site_url('controller/function/params/params')
Do you have a base tag set in your outputted html? Have a look through the head section of your pages for
<base href="..." />