Forum Discussion
BigIP_Support_9
Nimbostratus
Feb 23, 2006Change URI without redirect
I want to change the user URI as below:
http://www.abc.com/demo -> http://www.abc.com/demo1
Here is my code: if (http_uri == "/demo") {
redirect to "http://" + http_h...
chief_rocka_334
Nimbostratus
May 19, 2018I needed the same type of iRule and this worked for me with no redirects.
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] starts_with "/demo/" } {
HTTP::path [string map {"/demo/" "/demo1/"} [HTTP::path]]
}
else{
pool demo-pool
}
}
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
