I have a relatively simple (I think) use-case but I can't find any examples where someone has done this. We are using Varnish as a cache and reverse proxy in front of two different applications and would like to make things a bit more unified across both as they both do similar things. I was hoping Varnish could help rewrite the URLs as shown below.
Original application URL for pagination (get first 10 items):
//myapplication.com/products/?startindex=1&endindex=10 Desired URL:
//myapplication.com/products/?paginate=1:10 This is just one example (the most complex because it combines two parameters), but in all cases the input values for the parameters stay the same, it is just that the parameter names will change.
Another example would be:
//myapplication.com/search/?q=something Does anyone have any experience with varnish and how this could be done?