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...
John_Comstock
Nimbostratus
May 31, 2007We modified our iRule to prepend the protocol and fqdn.
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
if {[HTTP::uri] starts_with "/"} {
HTTP::uri http://$entry[HTTP::uri]
}
}
}
This works to rewrite the inbound traffic. Our internal server returns a 301 with the internal host name... so we'll need to address the response.
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