For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

njuettner_14565's avatar
njuettner_14565
Icon for Nimbostratus rankNimbostratus
Apr 07, 2014

Rewrite URL

Hi everyone,

 

I want to rewrite a URL and I don't know how to do it:

 

First of all, lets say I've a URL www.abc.com.

 

Example for the complete URL:

 

http://www.abc.com/foo/bar/foo

 

Is it possible to rewrite only the first foo?

 

So that only the new URL is http://www.abc.com/bar/foo.

 

Hope someone could help me.

 

1 Reply

  • John_Alam_45640's avatar
    John_Alam_45640
    Historic F5 Account

    On 11.4 you can try the URI translation under the rewrite profile.

     

    Or you can try this on 10.x and above. https://devcentral.f5.com/wiki/iRules.proxypassv10.ashx

     

    The iRule is more flexible and more capable. The rewrite profile has better performance.