Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

add /browerWeb Extension after domain name

Nompang
Altocumulus
Altocumulus

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 the browser , the new resoruces will be appended after /browerWeb, example it would be https://www.abc.com/browserWeb/examplenewresources.

can you guys help me to write an irule for this one ?

Thanks

 

1 ACCEPTED SOLUTION

Paulius
MVP
MVP

@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"
    }

}

View solution in original post

3 REPLIES 3

Paulius
MVP
MVP

@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"
    }

}

Thanks @Paulius  , let me try to execute

LiefZimmerman
Community Manager
Community Manager

@Nompang  - If your post was solved it would be helpful to the community to select *Accept As Solution*.
Thanks for being part of our community.