Forum Discussion

OmarKhan_249581's avatar
OmarKhan_249581
Icon for Nimbostratus rankNimbostratus
Jun 08, 2017

HTTP Rewrite for a specific URL

Hi there,

 

Here was the initial URL redirection requirement;

 

Destination: http://www.abc.com/xyz/*

 

Redirection to: http://xyx.test.com/services/test.svc

 

Below is the redirect irule

 

when HTTP_REQUEST { if { [HTTP::host] equals "; and [HTTP::uri] starts_with "/xyz/" } { HTTP::redirect "; } }

 

Now another requirement comes up that devices can upload to a single URL and expecting reply form the same URL . Is it possible to configure a Rewrite rule not redirect?

 

Regards, Omar

 

3 Replies