Ok, I tried it on my own, and I have found a solution: In the database, there is a table named wp_postmeta. Entrys with the meta_key ‘wp_attached_file’ containing the filename of an attachment in the field ‘meta_value’
The older wordpress installations linked the whole filesystem based path to the image. The new one, v2.7(.1) has filled the field out with the filename only.
With the mysql command
update wp_postmeta set meta_value = replace(meta_value, ‘/var/www/mindland.info/wp-content/’, ”) where meta_key=’_wp_attached_file’
and
update wp_postmeta set meta_value = replace(meta_value, ‘/var/www/vhosts/mindland.info/httpdocs/wp-content/’, ”) where meta_key=’_wp_attached_file’
I earsed the full file system paths.
My current question is: Why the image links are correct and working on my old domain?