Forum Discussion
ST_Wong
Cirrus
Apr 02, 2014URL path rewrite?
Hi all,
Is it possible to perform following redirection using iRules?
http://www.example.com -> node1 and node2
http://www.example.com/external -> node3 and node4 (and user sees http://ww...
Cory_50405
Noctilucent
Apr 03, 2014Sure, just a simple change necessary to hide the /external from the nodes:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "www.example.com" } {
if { [string tolower [HTTP::uri]] equals "/external" } {
http::uri "/"
pool node34
}
else {
pool node12
}
}
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