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...
jrosales2000_10
May 16, 2011Nimbostratus
Hi, i wanted to follow up with a resolution on this issue (they are still qa'ing, but an initial smoketest looks good).
To fix, i removed the /vin.aspx out of the HTTP::uri statement, and setup IIS to handle the default document for the /jag and the /landrover folders. This allowed me to route users to the correct subfolder based on url, and lets IIS manage the default document.
Thanks for sticking with me on this, i truly appreciate it!!
Here is my final irule:
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]] {
"devsmk.landrover.mywebsite.com" {
HTTP::uri "/landrover"
}
"devsmk.jaguar.mywebsite.com" {
HTTP::uri "/jag"
}
}
}
}
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