on 09-07-2020 9:06 AM
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.
The issue for us was caused by a wrong Tomcat configuration in tomcat_context.tpl file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.