Forum Discussion
bradley2100
Nimbostratus
Jun 30, 2016Simple Rewrite
Afternoon
I am in the process of setting up a simple rewrite migrating from TMG operating in Reverse proxy/load balance roles.
I simply want the F5 to rewrite and load balance an address a...
Vijay_E
Cirrus
Jun 30, 2016Rewrite profile can be utilized to achieve what you are seeking. If it works, you are on the right path. If you are seeking an alternate option using iRule, consider something similar to this:
when HTTP_REQUEST {
if { [HTTP::host] contains "abcd.com" } {
HTTP::host [string map {abcd.com xyz.com} [HTTP::host]]
}
when HTTP_RESPONSE {
if { [HTTP::header values Location] contains "xyz.com" } {
HTTP::header replace Location [string map {xyz.com abcd.com} [HTTP::header value Location]]
}
}
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
