Forum Discussion

Joseph_Goyette_'s avatar
Joseph_Goyette_
Icon for Nimbostratus rankNimbostratus
Mar 10, 2005

Modify URI passed to servers ?

Howdy. I've a quick question to ask regarding iRules...

 

 

Is is possible to identify urls of the form:

 

 

http://thisismysite.com/aDirectory/aScript?par1=Type125&par2=2 etc...

 

 

Modify them to a slightly different form:

 

 

http://thisismysite.com/Type125.jsp?par1=Type125&par2=2 etc..

 

 

And then hand the modified url off to a pool of web servers ?

 

 

Issuing a redirect with the new url is one way to do this but I need to find a way to do it without issuing redirects (the tools calling the url's do not handle redirects).

 

 

Thanks !!!

 

 

Joe
  • drteeth_127330's avatar
    drteeth_127330
    Historic F5 Account
    Yes, iRules can do that. The HTTP::uri command with no arguments returns the URI. HTTP::uri rewrites the request URI to the specified value.
  • Excellent ! Now, is this same functionality supported on the 4.5.10 software version ? We run a mixture of older and newer F5 units.

     

     

    Joe