I have moved a site from one server to another. The old site used sites/www.example.com, but on the new server I renamed it to sites/default and all images using imagefield is now not showing.

The http://192.168.2.98/sites/default/files/sites/www.example.com/files/prof....

I have updated settings/file-system to reflect this. Everything else works fine, but the path to the images are completely wrong. In the path above it is using the new path, but also adding the old as well and thus the images are not found.

I have looked in the dbs and every place I can think of, but can't find why this is happening.

Comments

quicksketch’s picture

Changing the file path in Drupal will not update the file path in the database. You'll need to update all the paths in the "files" database table to match your new location.

tsvenson’s picture

Status: Active » Closed (fixed)

Thanks quicksketch,

That worked perfect, dunno how I could overlook looking in the files db :).