Forum Discussion
Roflcopter
Nimbostratus
Nov 26, 2013iRule append URi based on URL
I am looking to create an iRule that will append the URI based on the subdomain called.
For example -
if exmaple1.test.com append /example1
if example2.test.com append /example2
I assume th...
PeteWhite
Employee
Nov 26, 2013when HTTP_REQUEST {
set original_uri [HTTP::uri]
set append [getfield [HTTP::host] "." 1]
set HTTP::uri "$original_uri/$append"
}
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