Forum Discussion

RAHUL0018's avatar
RAHUL0018
Icon for Altocumulus rankAltocumulus
Apr 24, 2019

iRule for Redirection

I am hosting a web application on LTM with a single pool member. The application is accessible via URL where x.x.x.x is the server IP on which application is hosted. I want to host the application in such a way on LTM such that /PMT URI part is not visible to end user. So if the application's VS IP on LTM is y.y.y.y it should be accessible using only without any additional URI getting appended such as /PMT.

 

2 Replies

  • You can do it without irule...

     

    Create a rewrite profile uri translation mode...

     

    In this profile, create one rule with

     

    • Client uri : /
    • Server uri : /PMT/

    the ending / is required...

     

  • Your requirement is rewriting, not redirect...

     

    Redirect is when the server respond with a 30x code and location header with new uri