Forum Discussion
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 in...
Kai_Wilke
Apr 03, 2019MVP
Hi JemW,
a very minimalistic iRule will look like below...
when HTTP_REQUEST {
set low_uri [string tolower [HTTP::uri]]
if { $low_uri starts_with "/xyz"} then {
pool Pool_xyz
} elseif { $low_uri starts_with "/x"} then {
pool Pool_x
} elseif { $low_uri starts_with "/abc"} then {
HTTP::path "/scripts[HTTP::path]"
pool Pool_abc
}
}
Note: Depending on how the web application is made, you may need to modify the HTTP responses too. If the application references
in its HTML/CSS/etc., you will need to adjust those references to /scripts/abc
before sending the response to your clients. Be warned, it will be time consuming to adjust complex applications.../abc
Cheers, Kai
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