Forum Discussion
iRule for uri redrect
Would you mind please verify below iRule for redirecting the traffic which is going to "/career " redirect to https://jobs.abcd.com
if { [HTTP::uri] equals "/careers" } { HTTP::redirect "https://jobs.abcd.com"; }
Does it work?
Any help with this will be greatly appreciated..!!
Thank you..!!
Issue got fixed with below iRule.
when HTTP_REQUEST { if { [HTTP::uri] equals "/careers" } {
Thank you Stanislas for all your support..!!
Regards, Mohan
- Stanislas_Piro2Cumulonimbus
I should recommend to do it with a policy instead of irule!
Your code may work but I would recommend to :
Filter on HTTP::path instead of HTTP::uri
Use starts_with instead of equals if you want to catch all subdirectories of /careers
- Mohan_Kumar_321Nimbostratus
Issue got fixed with below iRule.
when HTTP_REQUEST { if { [HTTP::uri] equals "/careers" } {
Thank you Stanislas for all your support..!!
Regards, Mohan
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