I recently migrated my magento website to another server, and this process I used:
- made a database dump.
- copied all system files from FTP to my hard drive.
- freed the VAR folder
- folders with media cache are omitted
- replaced strings in SQL dump from http://www.oldsite.com to http://www.newsite.com
- restored the database on the new server
- changed the local.xml file in accordance with the new database host, username and password.
- uploaded system files to the new server
Everything seems to be working fine, except for the fact that product images are not displayed on the interface for any reason.
For example, here is the path from the image that should have been displayed, which I received through firebug:
http://www.newsite.com/media/catalog/product/cache/1/small_image/113x113/9df78eab33525d08d6e5fb8d27136e95/1/_/1_9.jpg
When I look for the path to the image that the site should display on FTP, the file is actually there. I can download it and display it on my computer. I do not know why this is happening. It makes no sense to me.
This /media/catalog/product/cache/ was generated by the system because I deleted it myself before loading the site, so I think this is not a cache problem.
Ok, I described the problem as best as possible. I hope you can help me.
EDIT:
Hmm, it turns out that the problem was in the .htaccess file inside the media folder! File deleted → Problem solved!
image migration magento
Rafa
source share