Forum Discussion
MMaaroufi
Nimbostratus
Jul 02, 2019URL redirect
Hi everyone, I need to create an iRule that can manage these modification: HOST “abc-ppi” ==> “abc” Modify URI "/a/b/c" ==> "/a/b/c-ppi" NOT modifying any other URI Any suggestion ple...
- Jul 02, 2019
Very explicit but this what you need?
event HTTP_REQUEST { if {[string tolower [getfield [HTTP::host] ":" 1]] eq "abc-ppi"} { HTTP::header replace "Host" "abc" } if {[string tolower [HTTP::uri]] eq "/a/b/c"} { HTTP::uri "/a/b/c-ppi" } }
MMaaroufi
Nimbostratus
Jul 02, 2019Hello Andy,
Thank you for your reply, i'll test it and let you know if it worked.
Regards.
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
