redirect internal body urls temporarily for local development
If there is given hard coded URL then you need to change it one by one , and if its coming through program or Drupal standard behavior then you can check it with clearing the cache.

Following are the way you can check:

1. Check settings.php to ensure that $base_url is set to "http://localhost"

2. Check settings.php to ensure that MySQL settings are correct

3. Take an SQL dump of the entire local database and searched for any references to live site URL

4. Delete all the local cache data from database

5. Check various blocks to ensure that there was no hard coding of links