Hi,
I have a thumbnail resize that sizes images on the fly. However, it generates a pretty awful url, which is annoying me:
I want a neater URL structure like:
I've tried using the below rule but I can't get this to work at all, I think it has something to do with the filename being included twice in the URL (highlighted). The image needs to be there twice as per the script I'm using (http://shiftingpixel.com/2008/03/03/smart-image-resizer/).
Any help appreciated.
I have a thumbnail resize that sizes images on the fly. However, it generates a pretty awful url, which is annoying me:
Code:
www.mySite.com/thumbnail-sizer.php/[COLOR=Red]myProd.jpg[/COLOR]?width=230&image=/img/product/[COLOR=Red]myProd.jpg[/COLOR]&quality=60
Code:
www.mySite.com/images/product/large/myProd.jpg
Code:
RewriteRule ^images/product/large([^/]*)$ thumbnail-sizer.php/$1?width=230&image=$1&quality=80 [L]
Any help appreciated.
Last edited: