Forum Moderators: phranque

Message Too Old, No Replies

Mod rewrite help, please

         

MrBaseball34

5:28 pm on Aug 9, 2010 (gmt 0)

10+ Year Member



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 would normally formatted like this (this is how they are generated in my store software):
#*$!XX-YYYYY-home.jpg
#*$!XX-YYYYY-medium.jpg
#*$!XX-YYYYY-large.jpg

Where #*$!XX = 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.jpg
1-1-medium.jpg
1-1-large.jpg

jdMorgan

3:52 am on Aug 10, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What is the significance of "1-1-" in your image filepaths? Is this to be taken -- or derived, or "copied" from the requested URL in some manner?

Jim