I have a URL lets say: http://example.com I want it to be rewritten by haproxy to: http://example.com/ww
All I want is for haproxy to rewrite the URL only if it does not have any path, ie http://example.com, then add the ww to it, so it becomes http://example.com/ww I do not have Apache on the server, so not mod_rewrite. I hope this is clear enough, not sure how else to say it. Thanks On Thu, 2014-07-03 at 22:40 +0200, Baptiste wrote: > On Thu, Jul 3, 2014 at 9:38 PM, Jeffrey Scott Flesher Gmail > <[email protected]> wrote: > > I have a url that always begins with ww, ie http://domain.tdl/ww/en/..., I > > want to rewrite the url to include the ww, > > I tried the below, it works, but changes the path or something, > > because it cause the resources like css and images to not appear (404), > > does anyone know how to fix this or do this the right way? > > > > acl has_ww_uri path_beg -i /ww > > reqirep ^([^\ :]*)\ /(.*) \1\ /ww/\2 if !has_ww_uri > > > > Hi Jeffrey, > > Can you clarify a bit your question, cause you're confusing me. > please send us an example of what you get in HAProxy and how you want > it out after HAProxy has rewritten it. > > Baptiste

