Forum Discussion

Nompang's avatar
Nompang
Icon for Altocumulus rankAltocumulus
Aug 03, 2023

add /browerWeb Extension after domain name

Dear Expert ,  i get requirement from my team on LTM irule as below :  when we input url : https://www.abc.com , F5 LTM will redirect to https://www.abc.com/browserWeb and if they click get inside...
  • Paulius's avatar
    Aug 03, 2023

    Nompang Button clicks should be handled on the website rather than the F5. They can make it so when the button "get" is clicked it sends a redirect path to them. This doesn't seem like it should occur on the F5 at all. Same goes for the first redirect. If they must perform the first redirect on the F5 you can do the following.

    when HTTP_REQUEST priority 500 {
    
        if{ ([HTTP::host] == "www.abc.com") && ([string tolower [HTTP::uri]] == "/") } {
            HTTP::redirect "https://www.abc.com/browserWeb"
        }
    
    }