How to remove dynamic folder name from url

hi guys,

can someone PLEASE provide rewrite condition and rule to remove an always changing folder’s name from the url string?

example - want these:
mysite.com/files/box/data/278/myimage.jpg
mysite.com/files/box/data/456/myimage.jpg

displayed as:
mysite.com/files/box/data/myimage.jpg

many thanks in advance!

zx,

First, that was a “script kiddie” request. I’m here to help members learn, not provide free coding. If you want to learn, start with the tutorial linked in my signature and come back with questions. Otherwise, wait for others who may be more amenable to helping a “script kiddie.”

Second, if you want to serve an image from a specific path, you must provide that information in the original URI (or make the missing part fixed, not variable as you have specified). In other words, you can’t get there from here. The tutorial will help you see that.

Regards,

DK