ASM URL ReWriting

Dear all;

am new with BIG-IP ASM, and i want to make url rewriting rule using the GUI (configuration utility)…

sample:

client request :

www.abc.com/pls/apps/f?p=100

url rewrite to :

www.abc.com/xyz

is there any tutorial for this?

Hi Mohammad,

You can use an iRule like this to rewrite the URI:

when HTTP_REQUEST {
   if {[HTTP::uri] eq "/pls/apps/f?p=100"}{
      HTTP::uri "/xyz"
   }
}

For details on the commands you can check the wiki pages:

http://devcentral.f5.com/wiki/default.aspx/iRules/http_request

http://devcentral.f5.com/wiki/default.aspx/iRules/http__uri

Aaron

Also note that the URI rewriting done in HTTP_REQUEST is done before ASM validates the request. So you’d need to have your ASM policy configured according to the rewritten URI--not the client’s originally requested URI.

Aaron