Forum Discussion
irule redirection
I tried the above irule and it still skipped the if clause and went right to the else clause. I modified my irule to use a data group. but that isnt working much better
when HTTP_REQUEST { log local0. "Received request from ([IP::client_addr]) for ([HTTP::path])" if { ( [class match [IP::client_addr] equals Client-Redirect-DG]) } { log local0. "Client: [IP::client_addr]" if { [HTTP::uri] equals "/index.htm" } { log local0. "Redirecting client [IP::client_addr]" HTTP::redirect "http://[getfield [HTTP::host] ":" 1]/index_new.htm" } else { log local0. "not redirecting client: [IP::client_addr]" } } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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