Let's say a user tries to access a given image on my website using the following URL: http://www.mywebsite.com/random/image1.jpg?someParam=100
I need a rewrite rule to this, removing the 'random' node from the path:
http://www.mywebsite.com/image1.jpg?someParam=100
I have found similar question here But in my case, the 'random' changes and I don't know how many such folders are there. How do I do it. ?