Forum Discussion
John_Comstock
Nimbostratus
20 years agoiRule 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...
Deb_Allen_18
20 years agoHistoric F5 Account
Hi John -
Try this:
when HTTP_REQUEST {
if { ( [getfield [HTTP::host] ":" 1] ends_with "external.net" ) } {
HTTP::header replace Host [string map -nocase {"external.net" "internal.net"} [HTTP::host]]
}
}/deb
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