Skip to content
Advertisement

Codeigniter local host redirects to live server

I downloaded the source code of a website. The website is live and working. I wanted to make some changes offline to test them first but when I go to localhost on my browser, I get redirected to live website and the changes are not being updated. Help me with this.

Advertisement

Answer

In application/config/config.php page, change base url

$config['base_url'] = 'http://localhost/yourfoldername/';
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement