Forum Discussion
SidHaz
Nimbostratus
Jul 12, 2019Search and Replace URL using iRule
I am very new to iRule and this could be very basic, so please bear with me. We are having a change in the url context and hence all new urls will include a new context after the domain. I need a iR...
Evan_Thompson
Cirrus
Jul 12, 2019HI.
Is this helpful?
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/lmprd/" } {
HTTP::uri [string map {"/lmprd/" "/newprd/"} [HTTP::uri]]
}
log local0. "[HTTP::uri]"
}
/var/log/ltm
Jul 12 11:41:40 g5v-13112 info tmm[10349]: Rule /Common/My_rule2 <HTTP_REQUEST>: /newprd/ClickService?token=dsadasasdassHelp 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
