Forum Discussion
Phil_Rudich_735
Nimbostratus
Nov 07, 2007URI 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. Thi...
Phil_Rudich_735
Nimbostratus
Nov 07, 2007Thanks for the response Joe.
We're close, but no cigar just yet! My "images" fall under the "AAEP" directory, but don't display on the page. When I do a properties on them, they are showing up at the root of the [host] under Images (eg. yyy.mycompany.com/images/picture.jpg instead of yyy.mycompany.com/AAEP/images/picture.jpg) Hope this makes sense.
I tried your suggestion with a slight modification, but can't seem to tweak it to work:
when HTTP_REQUEST {
if { [HTTP::host] equals "wwwcert.abms.benelogic.com"} {
HTTP::header replace "Host" "memberc06.benelogic.com"
switch -glob [HTTP::uri] {
"/" -
"images/" -
"bin/" {
HTTP::uri "/AAEP/"
}
}
}
}Any thoughts?
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