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...
BigIP_Support_9
Nimbostratus
Feb 28, 2006I searched and see that in v9.x iRules, we can do below, so we don't need to use REDIRECT to just to change the URI but still forward to same FQDN, same server pool
if (http::uri equals "/demo") {
HTTP::uri "http://" + http_host + "/demo1/"
pool demo-pool
}
else {
if (http::uri contains "/demo/") {
HTTP::uri "http://" + http_host + "/demo1/" + substr(http_uri, 6, 1000)
pool demo-pool
}
else {
pool demo-pool
}
}How can I do above in v4.x?
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
