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

Redirecting to a page from a shortname

HerrDrachen
Altocumulus
Altocumulus

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.

1 ACCEPTED SOLUTION

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 : 
LTM_Redirect.PNG

Test both workarounds , hope it help 
Thanks 
Mohamed Kansoh

_______________________
Regards
Mohamed Kansoh

View solution in original post

3 REPLIES 3

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 : 
LTM_Redirect.PNG

Test both workarounds , hope it help 
Thanks 
Mohamed Kansoh

_______________________
Regards
Mohamed Kansoh

Perfect - this was the missing link that we needed!

@HerrDrachen that is a good news 😄

_______________________
Regards
Mohamed Kansoh