Forum Discussion

HerrDrachen's avatar
HerrDrachen
Icon for Altocumulus rankAltocumulus
Nov 07, 2022
Solved

Redirecting to a page from a shortname

We are converting from Apache to F5 and the current user links all point to:

https://xxx.yyy.zzz

When they go there, it redirects them to

https://xxx.yyy.zzz/SSOLogin

and bring them right into the application.  With F5, I have setup a Local Traffic | Policy to perform a redirect based on the JSESSIONID and matching the HTTP URI to Replace the value with /SSOLogin and that seems to bring me to the page but not log me in.  If I click on the browser page and select the new https://xxx.yyy.zzz/SSOLogin that is shows me, I get right into the application.

I would like to have anyone using the current FQDN link to automatically login like they do with the older Apache LB.  I can get them to the page but I feel like I am either using the wrong item in F5 to get there or I am just >< close to just getting them in.

  • Hi HerrDrachen , 
         Try this iRule , I have tested it on my Lab environment and it works well . 

    when HTTP_REQUEST {
    if { [HTTP::uri] equals "/"}
     {
        HTTP::redirect "https://[HTTP::host]/SSOLogin"
     }
    }

     > I Could Login successfully after using it. 

    > For LTM Policy you Can do like this , it works with me and successfully authenticated as well : 

    Test both workarounds , hope it help 
    Thanks 
    Mohamed Kansoh

3 Replies

  • Hi HerrDrachen , 
         Try this iRule , I have tested it on my Lab environment and it works well . 

    when HTTP_REQUEST {
    if { [HTTP::uri] equals "/"}
     {
        HTTP::redirect "https://[HTTP::host]/SSOLogin"
     }
    }

     > I Could Login successfully after using it. 

    > For LTM Policy you Can do like this , it works with me and successfully authenticated as well : 

    Test both workarounds , hope it help 
    Thanks 
    Mohamed Kansoh