0

I want to use pub/ directory for security reasons as document root for Magento website but when i switch it, images for categories and for manufacturers (in product detail) are not displayed.

I follow Modify docroot to improve security instructions from Magento documentation and products pictures are displayed well, but URLs for categories and manufacturers images are still generated with pub/ prefix and so it ends with 404 Not found

I use

  • GNU/Linux Debian 10
  • Apache 2.4
  • MariaDB 10.3
  • PHP 7.2
  • Redis 5.0
  • Magento 2.3

Does anyone have an idea what should I do to fix this? Thanks

Update: Few other findings

  • Category images are show correctly in admin interface
  • php bin/magento indexer:reindex does not help
2
  • Were you able to fix this? Encountering same thing. Aug 5, 2020 at 21:31
  • Sadly, no. I ended up with document root set to original location. Aug 8, 2020 at 10:51

0

Your Answer

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

Browse other questions tagged or ask your own question.