JTT Posted October 22, 2010 Share Posted October 22, 2010 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.jpgI 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 More sharing options...
rocky Posted October 22, 2010 Share Posted October 22, 2010 I don't understand why you want to rename the files. PrestaShop already rewrites the URL of the images when friendly URLs are enabled to include the category and product name in the image URL. Link to comment Share on other sites More sharing options...
JTT Posted October 22, 2010 Author Share Posted October 22, 2010 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 More sharing options...
JTT Posted October 26, 2010 Author Share Posted October 26, 2010 Am I wrong ? Or does somebody know the answer ? Link to comment Share on other sites More sharing options...
rocky Posted October 26, 2010 Share Posted October 26, 2010 Of course, the filenames of the images themselves are numbers, but search engines will see the product ID and name instead of the real filename. Link to comment Share on other sites More sharing options...
reba Posted December 29, 2010 Share Posted December 29, 2010 if you target both the category and the product name , i think will be better if you target both in the the image namelike this :/img/c/18-category-product-name.jpg Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now