Forum Discussion
slomah_85788
Nimbostratus
Jun 10, 2009Appending iRule
Hi,
I have requested to create iRule which will add appending to url, as the customer will write (http://mycompany.com ) and the application won’t work unless you write the following (http://m...
Matt_108113
Nimbostratus
Jun 15, 2009All,
I have an append/redirect question.
Right now I am doing a straight redirect based on two different paths, but now my users want to add arguments to the paths how can I do this? Below is the current rule and an example of the url the users are trying to use.
when HTTP_REQUEST {
if { [HTTP::uri] equals "/dev" } {
log local0. "Found the uri /"
HTTP::redirect "https://www.server1.com:4444/dev"
}
if { [HTTP::uri] equals "/test" } {
log local0. "Found the uri /"
HTTP::redirect "https://www.server1.com:4444/test"
}
}
so basically the redirection takes you to the apache server running on 4444 instead of 443, but the question is if a user hit https://www.server1.com/test/USERNAME -or- https://www.server1.com/dev/PROJECT the redirect takes them to the mainpage (since that is what the rule tells it to do), but how can I grab the PROJECT code or the USERNAME and pass that to the redirect or append it to the redirect?
Thanks,
Matt
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