I’m using Grav 1.7.10 and I would like the images used in my websites to have the shortest possible URL, something like “www.mysite.com/picture.jpeg”
A similar topic has already been posted in 2017 here SEO-friendly image URLs but I didn’t find an answer to my questions in it…
Depending on how I display my images, their URL can be of two types :
- “www.mysite.com/user/pages/06.ttttt/mypicture.jpeg” when the original image is used,
- “www.mysite.com/images/n/o/r/v/e/norvege-5-9704dc52.jpeg” when, for example, I modify the original image using image.resize().html()
In both case the URLs are two long and I’m searching for a way to shorten them. I especially don’t understand why, in case 1., the “user/pages/06.ttttt/” appears in the URL… I would expect the URL to be “www.mysite.com/page-slug/mypicture.jpeg”. Is it possible to achieve this ?