Previous Topic: Map Single Rule to Many Destination Servers

Next Topic: Header Values in Forwards, Redirects, and Results Filters

Regular Expressions to Redirect Users

The nete:result element can also be used to create a redirect response that is returned to the user requesting the resource. This forces the fulfillment of a request to be handled by a server other the SPS after authentication and authorization. The following is an example of a nete:xpr element that specifies a redirect in the nete:result child element.

<nete:xpr>
<nete:rule>/REDIR=(.*)/(.*)</nete:rule>
<nete:result service="redirect">http://$1/$2</nete:result>
</nete:xpr>

Note: The service attribute instructs the SPS to use the redirect service in place of the default forward service.