Forum Discussion
f5jr_28664
Nimbostratus
May 14, 2011IRule to redirect
Hey Folks,
I would like to redirect the URL https://www.yyy.com/product/catalog/index.cgi?catalog=3455 to https://zzz.ccc.com/product/catalog...talog=3455 with iRule for production migration. Can someone please help me out here with exact irule to do this with LTM ?
Thanks a Bunch
newbie
- hoolio
Cirrostratus
Hi, - Colin_Walker_12Historic F5 AccountIf you're on v9 or later then you'd need a Client SSL profile to decrypt the SSL, and an iRule that looks something like:
when HTTP_REQUEST { if { ([HTTP::host] eq "www.yyy.com") and ([HTTP::uri] eq "/product/catalog/index.cgi?catalog=3455")} { HTTP::redirect "https://zzz.ccc.com[HTTP::uri]" } }
when HTTP_REQUEST { if {[HTTP::host] eq "www.yyy.com"} { HTTP::redirect "https://zzz.ccc.com[HTTP::uri]" } }
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