View Single Post
  #12  
Old January 9th, 2015, 09:54 AM
zed7 zed7 is offline
 
Join Date: Mar 2013
Posts: 24
Default

Quote:
Originally Posted by vhekler View Post
Store ID: 44535
URL to page in question: Name of stored images

Hi Eric,

is it possible to store the images, we get from the merchants over Datafeedr with another Name of the File, e.g. artdesignportal_(Number).jpg? The advantage would be, if user download the picture, they know, where they found the image in the web.

regards

Marvin
You could do it by adding artdesignportal_ in front of product.image in your views, and then instruct your webserver i.e. Apache to replace it with regexp. Something like this should work (untested):
RewriteRule ^/(artdesignportal_)([0-9].*\.jpg)$ $2 [L]

Docs: http://httpd.apache.org/docs/2.0/mod...ml#RewriteRule