None of my product images are displaying as it should both in admin backend and on frontend of website. When i tried visiting the image path e.g.,http://yourdomain.com/magento/media/images/product1.jpg it returned a 404 Not Found Error for all product images although the images are on the correct location and provided correct path.

More