1

I have a very strange issue in my site. When I access any of my product images, I can access by this type of url:

abc.com/media/catalog/product/0/1/0101-white.jpg

Whereas this image is at:

/var/www/html/pub/media/catalog/product/0/1/0101-white.jpg.

So I am wondering why I am not able to access my product images like this:

abc.com/pub/media/catalog/product/0/1/0101-white.jpg.

In the front end all product images are showing fine. But the issue is coming in Google Feed because Google Feed is giving this error:

image links are not found

because it is accessing images from the pub url

abc.com/pub/media/catalog/product/0/1/0101-white.jpg

So I want to access my product images with the pub url.

Is there anyone else facing this type of issue. It would be really great if someone can help me with this.

Mozahler
  • 4,958
  • 6
  • 36
  • 56
Hardik
  • 51
  • 1
  • 7

1 Answers1

0

You can try to run following command and flush cache

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
Mukyuu
  • 6,436
  • 8
  • 40
  • 59
  • 1
    You might want to elaborate more about why should the following command being used and what to expect after running them. Anyway, welcome to SO :) – Mukyuu Mar 06 '19 at 10:51