Mar 27, 2026 - For details about updated CVE-2025-53521 (BIG-IP APM vulnerability), refer to K000156741.

Forum Discussion

Rasool1224's avatar
Rasool1224
Icon for Nimbostratus rankNimbostratus
Jul 15, 2018

http 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 - http;//test1.myapp.com should redirect to https://prod.myapp.com does it possible, note that, I have LTM and ASM license. your help will be appreciated. Thank you

 

1 Reply

  • If 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]]    
      }   
    }