php - Rewriting image names during page display -


i've web site have many listings. lets products. products have slugs generated name of products , stored in database. , products have images under folder of /images/products/

i use php, no framework.

at moment give name images using slug during upload process.

example: product id: 2500 product name: plazma tv url slug: plazma-tv image name: plazma-tv-01.jpg (and goes on -02.jpg -03.jpg ...)

what want upload images product ids (2500-01.jpg...) , change image names slug-01.jpg when page displayed visitor.

reason change name able use image name , alt text better seo success in search results.

i've more 60.000 photos uploded @ moment.

thanks


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -