Forum Discussion
Jim_107778
Nimbostratus
Mar 02, 2009Best way to rewrite no redirect
All,
I've got an application that needs to re-write the url...not redirect. There is data being posted...so a redirect would lose the data.
So...
when HTTP_REQUEST...
Jim_107778
Nimbostratus
Mar 03, 2009Aaron,
Thanks for the answer....unfortunately...I didn't explain myself well. So here's a better description.
I need to rewrite the entire url....based on the specific file in the URI.
So:
when HTTP_REQUEST {
if { [HTTP::uri] contains "/specificfile.asp/" } {
I need to change the url to one value as opposed to
if { [HTTP::uri] contains "/differentfile.asp/" } {
changes to a different url.
if
http://www.home.com/specificfile.asp send to http://www.away.com/whatever.asp
elseif
http://www.home.com/differentfile.asp sent to http://www.here.com/another.asp
So I've got to rewrite the incoming url to two totally different urls based on the file requested....but cannot redirect.
Thanks again,
Jim