Nano
April 19th, 2010, 03:51 PM
Hi guys, this might not be the best place to post this question but during all these years the Ubuntu Community has always helped me, so here it goes.
I need a rewrite rule that does the following (in pseudo-code).
Can someone help me?
If request contains ( ("jpg" or "gif" or "png") and "/static/images/products" )
when I say /static/images/products/large/some-text-written-here_ID2304.jpg
I mean /static/images/products/large/ID2304.jpg
In other words, everything between the last slash (/) and the underscore (_) has to be removed.
Thanks in advance, guys.
I need a rewrite rule that does the following (in pseudo-code).
Can someone help me?
If request contains ( ("jpg" or "gif" or "png") and "/static/images/products" )
when I say /static/images/products/large/some-text-written-here_ID2304.jpg
I mean /static/images/products/large/ID2304.jpg
In other words, everything between the last slash (/) and the underscore (_) has to be removed.
Thanks in advance, guys.