Forum Discussion
Fluidetom_12222
Cirrus
Feb 02, 2017Redirect iRule and replace only part of the URI
Hi Guys,
I have the following scenario and I'm not sure how to start writing my iRule to handle it.
I need to redirect all requests for https://oldsite.domain.com/psp/atlas_1/EMPLOYEExxx/whateve...
Santhosh
Nimbostratus
May 20, 2020I was looking for the similar one but replace the URI and change the referer as well. can you please help me with that.
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/abcd" } {
HTTP::uri [string map {"/abcd" "/xyz"} [HTTP::uri]]
}
}
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