Forum Discussion

Dipta_02_148889's avatar
Dipta_02_148889
Icon for Nimbostratus rankNimbostratus
Mar 10, 2015

Irule Redirection not working Properly

I have a url hiringmanagement.fmr.com com which should redirect to http://fidelity.taleo.net/smartorg/saml20authnrequestservlet.jss?redirectionURI=https%3A%2F%2Ffidelity.taleo.net%2Fsmartorg%2Fsmartorg%2Fcommon%2Ftoc.jsf%3Flang%3Den .

 

The irule used is : when HTTP_REQUEST { log local0. "request for [HTTP::host]" if { [string tolower [HTTP::host]] ends_with ".fmr.com"} { set fqdn_check [HTTP::host] } else { set fqdn_check [HTTP::host].fmr.com } log local0. "host [HTTP::host] fqdn_check $fqdn_check" if { ([ class match $fqdn_check contains spaces_sharepoint_redirect_class ]) }{ set redirect [ class match -value $fqdn_check equals spaces_sharepoint_redirect_class ] log local0. "Host: [HTTP::host] -- Redirect: $redirect" HTTP::respond 302 Location "$redirect[HTTP::uri]" } else { HTTP::respond 200 content "Sorry... Location [HTTP::host] not found." } unset fqdn_check }

 

Right now users getting 500 server error while using hiringmanagement.fmr.com but while using direct url http://fidelity.taleo.net/smartorg/saml20authnrequestservlet.jss?redirectionURI=https%3A%2F%2Ffidelity.taleo.net%2Fsmartorg%2Fsmartorg%2Fcommon%2Ftoc.jsf%3Flang%3Den there’s no error.

 

I don’t have access to the url so I get a authentication error but looks to me redirection working.

 

Is the irule correct or do I need to modify. Also can you explain the iruke, how it works?

 

4 Replies