D7 - Losing images when moving site location; placeholders point to old absolute path rather than relative path My file directories have not changed, but every time I move from local host to production, or just change the filename of a test site online, I loose the images.

For example if I use the backup of prodcution server in local I am getting the path name like below:


  http://localhost/sites/all/sites/default/files/images/image_name.jpg


here the project name is missing. thats why I am not getting the images.

I have changed the base_url in local as 


  http://localhost/project-name


But even that doesn't helps. (Cleared the cache after changing)

Merely this is a duplicate of this question

But I didn't get what I need on that question. Thats why I reposted again.

Any help will be thankful and grateful...
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.