IRULES - URi Rewriting

Hi all !

We would like to use URL rewriting throught iRules with our BIGIP. I saw many topics about the subject, but I couldn’t find what I was looking for.

The client will request : http://doc.test.com/base/id This VS has to be load balanced to :

http://doc1.test.com:8080/anotherbase/id & http://doc2.test.com:8080/anotherbase/id

So, the host will be changed, I guess throught the Pool configuration associated to the VS. And then the first part of the URi: “base” to “anotherbase”. How can I keep the “id” part unchanged ?

Thanks a lot !

Regards,

Bruno

is this just rewritten on the back end, or should these changes be visible to the clients as well?

Hi Jason, The clients will always see http://doc.test.com/base/id Thanks !

On the back-end, are you able to access the resource without specifying the host? If you can you will not have to worry about the host and you can simply use the HTTP::uri command. You’ll still have to manipulate the path and translate the port, of course.