I have a two Magento site both running on M2.3

On one site product details page images are served from pub/media/product. In this case the product images return 404 error. When I check, the product images are saved in pub/media/catalog/product

In the second website the images are served from pub/media/catalog/product which seems to be correct.

The 2 websites use the same theme ultimo.

So why does the first website use wrong image URLs?

Thanks for your help.

  • compare both website's .htaccess file in pub and root Commented Mar 6, 2019 at 4:25
  • @ShoaibMunir I have checked the website's .htaccess file in both pub and root and they are similar
    – Stifboy
    Commented Mar 6, 2019 at 10:05

1 Answer 1


Try to change permission on that folder.

chmod -R 777 pub/media/catalog

If you have a CDN purge all product images cache.

I just fixed it that way.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.