cancel
Showing results for 
Search instead for 
Did you mean: 

Media prettyURL - images not rendered

0 Kudos

Hi experts,

I'm trying to fix an issue with SEO URLs.

We are trying to make all the media URLs SEO friendly, hence we set the property

media.legacy.prettyURL  = true

All the images are stored with the following path:

/medias/sys_master/images/images/h4e/h75/8807025868830.jpg

With the property set to true and using the OTB mediaUrlStrategy the URLs become:

/medias/sys_master/images/images/h4e/h75/8807025868830/image_realfilename.jpg

However, images in storefront are not rendered and if I inspect the console in my browser, I can see 404 HTTP responses for all the images.

Can you please tell me if I missed something? I tried to do the same steps by using the OTB Hybris Vanilla and everything works fine in both Apparel and Electronics.

When I set the property, I stopped the server, did an ant clean all and restart the server.

P.s: I've just noticed that if I put root as media folder for an image, the image is rendered correctly, but if I move the media in images folder, the storefront is not able to find it.

View Entire Topic
0 Kudos

The issue for us was caused by a wrong Tomcat configuration in tomcat_context.tpl file.