Jump to content

Image names


JTT

Recommended Posts

I was searching for a long time, but didnt find an answer for renaming the images names in prestashop from .../img/c/18-category.jpg to /img/c/18-product-name.jpg

I have also tried one article editing adminimages.php and link.php but with no effect...

Please, what to do ? Thanks !

Link to comment
Share on other sites

For the imaga name rewriting, I think, this two lines in .htaccess are :

RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /eshop/img/p/$1-$2$3.jpg [L,E]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /eshop/img/c/$1$2.jpg [L,E]

but the names of the imgase are still only numbers, not category and product names for example.

Link to comment
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...