2
Today have the urls of my website images as:
/images/tb/1280077_894mvzfxoojqb.jpg
I would like to be able to rename this to the generated HTML
Apartamento_em_SaoPaulo.jpg
or something similar.
Possible options.
Apartamento_em_SaoPaulo__1280077_894mvzfxoojqb.jpg
or
/1280077_894mvzfxoojqb/Apartamento_em_SaoPaulo.jpg
This is for SEO reasons. That is, No html he would be with a name but would physically fetch the photo with another name.
Something like:
RewriteRule ^/imagens/([a-zA-Z0-9_-]+).jpg /imagens/$1.jpg
But it wouldn’t be feasible to physically re-name the photos (it has over 2 million images), it would have to be something like Route
or UrlRewrite
It can be just like that?
Fotos/1280077
– Leonel Sanches da Silva
Not for SEO reasons it was asked that the photo had a syntax of type casa_em_Campinas_2_dormitorios.jpg but this photo would be physically saved as 123142342423.jpg so it needs to be a Rewrite to do this. but I don’t know how
– Dorathoto