Technical Forum
Ask questions. Discover Answers.
Showing results for 
Search instead for 
Did you mean: 

Help with url redirect


I'm very new to F5 platform and need to work out how to do a url redirect for multiple backend servers

i am assuming creating an irule would be the best way for this solution ?


we currently have a working solution via F5 APM for remote users to connect to a public address / url

remote users connect to a url for example and are successfully authenticated and forwarded on to a back end server


there is now a requirement that if users add a specific suffix to the url they connect to they will be redirected to different back end servers


for example will be redirected to a different backend server

and will be redirected to different backend server


is creating an irule the best method to provide this solution ?


and any help with the format of an appropriate irule would be much appreciated


thanks in advance






Hi SY,


You can use iRule or LTM Policy.


to pool:

when HTTP_REQUEST { if { [HTTP::host] equals "" } { switch -glob [HTTP::uri] { "/abc*" { pool pool-abc } "/def*" { pool pool-def } } } }

to node:

when HTTP_REQUEST { if { [HTTP::host] equals "" } { switch -glob [HTTP::uri] { "/abc*" { node 443 } "/def*" { node 443 } } } }




Thanks for your reply

i tried the second irule you suggested using node ip addresses and this did not work

users are only ever forwarded to the backend server associated to the original url without the extension