steve_111974
May 05, 2008Nimbostratus
rewrite on mulitple uri and keeping the data in POST request
Hi,
We're migration our application servers. they will be listening on a particular URL. Right now our customer using 4 different url's to hit our application. We don't want them to change the url so I've been asked to re-write it. I was told that a redirect would not work because it's POST and contain data.
Here's the 4 possible url's:
/app/DentegraPortal/TransEDI
/app/DeltaCarePortal/TransEDI
/app/B2BEnt/TransEDI
/app/B2BPMI/TransEDI
Change to this url:
/b2b/transportServlet/TransEDI
Here's what I have so far:
How do I add the logging?
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/app/DentegraPortal" or [HTTP::uri] starts_with "/app/app/DeltaCarePortal" or [HTTP::uri] starts_with "/app/B2BEnt" or [HTTP::uri] starts_with "app/B2BPMI"} {
HTTP::uri "/b2b/transportServlet/TransEDI"
}
}
any advice would help greatly!