blwavg_10621
Aug 13, 2013Nimbostratus
Redirect Rewrite - F5 to Server Only
Hey,
We are moving from IIS to F5. I am having trouble with an invisible URI rewrite. My configuration is something like this:
Inbound Rule:
Pattern: .*
Condition:
Input: {HTTP_HOST}
Type: Matches The Pattern
Pattern: website.company.com
Action: Route to Server Farm
Action Properties:
Scheme: HTTPS://
Sever Farm: SERVER01_Farm
Path: /URI_REWRITE_PATH_HERE
Basically when a client connects to website.company.com the IIS server sends the request back to the servers with the appended URI. The client still only sees HTTPS://website.company.com/ in their browser. I need to keep this kind of continuity because we have some static URLs that fail WCF service calls.
The best irule I have come up with is (witch only appends the URI:
when HTTP_REQUEST {
if { [HTTP::uri] == "/" } {
HTTP::uri "/URI_REWRITE_PATH_HERE"
}
}