title: Product images not showing after migration of magento website
body: <p>I recently migrated my magento website to a different server, and here's the process I used:</p>
  
  <ol>
  <li>made a dump of the database.</li>
  <li>copied all the system files from the FTP to my hard drive.</li>
  <li>emptied the VAR folder</li>
  <li>emptied the media cache folders</li>
  <li>replaced the strings in the SQL dump from <a href="http://www.oldsite.com" rel="noreferrer">http://www.oldsite.com</a> to <a href="http://www.newsite.com" rel="noreferrer">http://www.newsite.com</a></li>
  <li>restored the database on the new server</li>
  <li>modified the local.xml file to suit the new database host, login and password.</li>
  <li>uploaded the system files to the new server</li>
  </ol>
  
  <p>Everything seems to work fine, except for the fact that the product images are not being displayed on the frontend for some reason.</p>
  
  <p>For example, here's a path from an image that was supposed to be showing, which I got through firebug:</p>
  
  <p><a href="http://www.newsite.com/media/catalog/product/cache/1/small_image/113x113/9df78eab33525d08d6e5fb8d27136e95/1/_/1_9.jpg" rel="noreferrer">http://www.newsite.com/media/catalog/product/cache/1/small_image/113x113/9df78eab33525d08d6e5fb8d27136e95/1/_/1_9.jpg</a></p>
  
  <p>When I search for the path of the image the site is supposed to show in the FTP, the file is actually there. I can download it and display it on my computer. I don't know why this is happening. It doesn't make any sense to me.</p>
  
  <p>This <code>/media/catalog/product/cache/</code> was generated by the system, because I erased it myself before uploading the site, so I guess it isn't a cache related issue.</p>
  
  <p>Well, I described the issue the best I could. I hope you can help me out.</p>
  
  <p><strong>EDIT:</strong><br>
  Hmm, it turns out the problem was the <code>.htaccess</code> file inside the media folder! Removed the file -> Problem solved!</p>