JemW_329006
Apr 03, 2019Nimbostratus
irule - basic insertion of text to url
An irule is used to capture requests to our https domains and redirect appropriately. All entries in this irule have been simple redirects from external address to the internal server on the same internal uri, such as to server/A.
We have a new website that needs publishing on a different url to that on itself. This means the new url needs redirecting from "" to //server/script/abc/.
Is there a way to do this without branching off into variables?An extract of our irule follows, looking forward to your help!
(BigIP v13.1.1)
:
set my_uri [ string tolower [HTTP::uri]]
...
if { [HTTP::uri] starts_with "xyz"} {
pool xyz
} elseif { $my_uri starts_with "x"} {
pool Pool_x
...
} elseif { $my_uri starts_with "/abc"} {
pool Pool_ABC
...