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 27, 2013OK, so this is the iRule that implements that pseudocode:
when HTTP_REQUEST {
if { [HTTP::host] equals "owamail.test.com.au"} {
set HTTP::uri /owa[HTTP::uri]
} elseif { [HTTP::host] equals "mobile.test.com.au"} {
set HTTP::uri /Microsoft-Server-ActiveSync[HTTP::uri]
}
}
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