Forum Discussion
Robert_47833
Altostratus
May 12, 2011return and HTTP::redirect usage
Hi,I have a irule like this
if {$uri matches_regex "^/(help/)"}
{
HTTP::redirect ]
pool cjj1
return
}
else{
pool cjj2
}
1:don't kno...
Robert_47833
Altostratus
May 12, 2011Hi,Bhattman hoolio
Thanks for your help
if there exist 2 events in this irule ,
when HTTP::request
if {$uri matches_regex "^/(help/)"}
{
HTTP::redirect http://[HTTP::HOST][HTTP::uri]
pool cjj1
return
}
else{
pool cjj2
}
when client::accpt
{
xxxxxx
}
1:if I want the traffic jump out of the irule when match help,it make sense to use return ,right?
if only one event here,it is no need to use return ,right?
2:I want to change the url to http://[HTTP::HOST][HTTP::uri] and send it to pool cjj1
does it work in my irule ?
if {$uri matches_regex "^/(help/)"}
{
HTTP::redirect http://[HTTP::HOST][HTTP::uri]
pool cjj1
return
}
else{
pool cjj2
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
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