Forum Discussion
Ravi_110217
Nimbostratus
Mar 11, 2008new HTTP page redirection request
Hello GuYs,
I am wondering if someone could help me out with HTTP page redirection rule... I have tried with couple of rules but none of them worked. See example below that how do I want to ...
Nicolas_Menant
Employee
Mar 12, 2008Hi,
Have you try to do some troubleshooting to check what was the HTTP::uri value ?
If you want people to help you , some idea about what may be happening would be welcome like doing the following:
when HTTP_REQUEST {
log local0. "uri is [HTTP::uri]"
log local0. "host is [HTTP::host]"
if { ([HTTP::host] eq "www.abc.com.au") && ([HTTP::uri] eq "/personalcredit") } {
log local0. "redirecting user..."
HTTP::redirect "http://[HTTP::host]/abconline/99.aspx"
}
}
And you can then give us the output of /var/log/ltm
May your issue be that you have additionnal stufd after /personalcredit ?
if yes, then try this:
when HTTP_REQUEST {
if { ([HTTP::host] eq "www.abc.com.au") && ([HTTP::uri] starts_with "/personalcredit") } {
HTTP::redirect "http://[HTTP::host]/abconline/99.aspx"
}
}
If this is not your issue, then show us some debugging information so that we can help you understand what is happening because what cmbhatt offered should work.
HTH
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