Forum Discussion
Rasool1224
Nimbostratus
Jul 16, 2018http header chnage when it redirects to https
I have an application which is http://test1.myapp.com and redirected to https://test1.myapp.com and it is working fine. but need to change the name when it redirects to https.
example:
application -...
Lee_Sutcliffe
Nacreous
Jul 16, 2018If I understand you correctly, you'd like to change the redirect from https://test1.myapp.com to https://prod.myapp.com
This can be done with an LTM traffic policy, you can also use the following iRule.
when HTTP_RESPONSE {
if {([HTTP::is_redirect]) && ([string tolower [HTTP::header Location]] contains "test1.myapp.com")} {
HTTP::header replace Location [string map -nocase {"test1.myapp.com" "prod.myapp.com"} [HTTP::header 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
