Phil_Rudich_735
Nov 07, 2007Nimbostratus
URI Rewrite
Hey all! I'm new to F5 and iRules and need some assistance.
Looking to take an original URL and perform a rewrite to another site so that the client does not know the true URL address. This is what I have so far:
when HTTP_REQUEST {
switch [HTTP::host] {
"www.yyy.mycompany.com" {
HTTP::header replace "Host" "zzz.mycompany.com"
HTTP::uri "/AAEP/"
}
}
}
However, there are two issues that I'm running into with this code:
Upon the first hit in the browser, it comes up with "Page cannot be displayed" error. Once I refresh, it works... but the other issue is that the graphics on the page do not display correctly.
Any help for this novice would greatly be appreciated!!
Thanks,
Phil