D7 - Losing images when moving site location; placeholders point to old absolute path rather than relative path
Have you tried using http://drupal.org/project/pathologic?

Which way are you using to migrate your database and files? I would also suggest that you clear the cache before exporting.