MrBaseball34 Posted August 9, 2010 Share Posted August 9, 2010 I have over 1 million downloadable products in my online store but I don't want to have individual images because there would be over 3 million images in this directory.The product image NAMES are generated in PS like this:XXXXX-YYYYY-home.jpgXXXXX-YYYYY-medium.jpgXXXXX-YYYYY-large.jpgWhere XXXXX = the productID and YYYYY = the id of the image record in the image table.Since I want them to use the exact same image(s) because they are downloadable products, how can I create a mod-rewrite entry where any product image name generated by the store would actually return these?1-1-home.jpg1-1-medium.jpg1-1-large.jpg Link to comment Share on other sites More sharing options...
MrBaseball34 Posted August 10, 2010 Author Share Posted August 10, 2010 For what it's worth, I think this will work, haven't had time to try it, yet: RewriteRule ^(.*)/([0-9]+)-([0-9]+)-home.jpg$ /img/p/1-1-home.jpg [PT] RewriteRule ^(.*)/([0-9]+)-([0-9]+)-medium.jpg$ /img/p/1-1-medium.jpg [PT] RewriteRule ^(.*)/([0-9]+)-([0-9]+)-large.jpg$ /img/p/1-1-large.jpg [PT] Link to comment Share on other sites More sharing options...
Recommended Posts