On Mon, Jun 07, 2010 at 07:02:56PM -0700, Sriram Chavali wrote: > I am trying to redirect from a URI of pattern /images/image.png?1234567 to a > URI of format /i/1234567 > > The rules I have are as following: > > acl acl_legacy_img url_sub img.png > use_backend legacy_img if acl_legacy_img > > The backend cofig is as following: > > backend legacy_img > reqirep ([^\ ]*)\ /img.png?id=(.*) /i/\2
You forgot to reuse the HTTP method (\1), so your server is getting an invalid request. You should see that in its logs. Try this instead : > reqirep ([^\ ]*)\ /img.png?id=(.*) \1\ /i/\2 Regards, Willy