Forum Discussion
John_Comstock
Nimbostratus
Sep 13, 2006iRule for URL Re-write
I have a requirement to rewrite the URL that external business partners connect to for both HTTP and HTTPS (will terminate SSL on the BigIP) traffic to forward to internal web sites. Can anyone direct...
G__Wesley_Rober
Sep 15, 2006Historic F5 Account
Hi,
If you need to do more detailed mappings, data group/classes might be useful.
Given the following data group, if found replace one with two
class urlrewrite {
"apples.com oranges.com"
"foo.com bar.com"
"peas.com carrots.com"
}
when HTTP_REQUEST {
set entry [findclass [HTTP::host] $::urlrewrite " "]
if {$entry != ""} {
log "Entry not null, replacing Host: [HTTP::host] with: $entry"
HTTP::header replace Host $entry
}
}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