Reputation: 3
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.
Upvotes: 0
Views: 1635
Reputation: 1424
Its probably
$config['base_url']
You can find it in
application/config/config.php
If that doesnt work, check out the .htaccess file and try to comment out rows that have Redirect in them.
You can find more info on redirecting in htaccess here
Upvotes: 0
Reputation: 714
In application/config/config.php
page, change base url
$config['base_url'] = 'http://localhost/yourfoldername/';
Upvotes: 1