Forum Discussion
bk1_144234
Nimbostratus
Feb 14, 2014irule redirect without changing host on client
hi,
I have an application which is access via our F5 loadbalancer.
Lets say the url is http://xyz.com/my/application/. The users accessing the url must be redirected to http://xyz.com/application/...
Kevin_Stewart
Employee
Feb 14, 2014Just guessing here, but you're CSS is likely being referenced from the client directly as "/application/something.css", in which case I think your first iRule can use a minor tweak:
when HTTP_REQUEST {
switch [string tolower [HTTP::uri]] {
"/my/application/*" {
pool application_pool
HTTP::uri [string range [HTTP::uri] 3 end ]
}
"/application/* {
pool application_pool
}
"/test/other/*" {
pool test_pool
HTTP::uri [string range [HTTP::uri] 5 end ]
}
default {
pool other_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