Forum Discussion
Chuchuchui_1605
Nimbostratus
Jun 19, 2010HTTP_REQUEST redirect newbie
I am trying to figure out how to do this redirect with an HTTP_REQUEST and I am confused. I am trying take this https://www.xxx.yyy.com/v1234/login.aspx?id=9999999-99 and redirect it to https://www.xx...
The_Bhattman
Nimbostratus
Jun 19, 2010or you can do the following
when HTTP_REQUEST {
Checks to see if the http request starts with a specific URI
if {[HTTP::uri] starts_with "/v1234"}{
Takes the information after ID= and uses that in the redirect
HTTP::redirect "https://[HTTP::host]/default.aspx?id=[substr [HTTP::query] 3 0]"
}
}
I hope this helps
Bhattman
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
