Forum Discussion
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 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
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" } }
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" } }
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.
Recent Discussions
Related Content
* 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