Forum Discussion
jrosales2000_10
Apr 29, 2011Nimbostratus
What did i do wrong with this irule for redirection based on url
Hi, i am trying to accomplish the following (we are running LTM 1600's version 9.4.6):
If a user enters url: oem1.website.com they are routed to oem1.website.com/oem1/vin.aspx
If a...
hooleylist
Apr 29, 2011Cirrostratus
Maybe something like this? I'm assuming you only want to rewrite the URI if the original request is for /.
when HTTP_REQUEST {
Check if the request is for the root document
if {[HTTP::path] eq "/" }{
Check the Host header
switch [string tolower [HTTP::host]] {
"oem1.website.com" {
HTTP::uri "/oem1/vin.aspx"
}
"oem2.website.com" {
HTTP::uri "/oem2/vin.aspx"
}
}
}
}
Aaron
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