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 ...
The_Bhattman
Nimbostratus
Mar 12, 2008The irule needs to be assocated to the VIP that is responsible for handling the www.abc.com.au traffic.
The log local0 arguement, depicted below, is how you output the variables and commands to a log file that you can view. It can tell which line it's being executed.
If you use the following code
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"
}
}
To view the debug code, log into the bigip via ssh and then go to /var/log directory. Then type in "tail -f ltm" and then run your tests via browser and see what happens at the log. You should information such as "redirecting user..." or "hosts is www.abc.com.au".
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