Forum Discussion
Jim_107778
Nimbostratus
Mar 03, 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 04, 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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
