Forum Discussion

Root44's avatar
Icon for Altostratus rankAltostratus
Jul 26, 2018

iRule Redirect for the same URL?

Hello All,


I am struggling to implement an iRule condition for the same URL where I can't use any redirects like 301, 302, 307, etc. because of infinite loop.


Here is the example.


Source URL:


Destination URL:


so basically I want to add /not/working/ part before hitting the backend servers. I tried few techniques but no results yet.


Thanks as always, R


1 Reply

  • I don't think you need to use a redirect to do what you are trying to accomplish.


    If it's a limited number of URLs, and the list is pretty static, why not just use a rewrite profile, which maps (in a reversible fashion) between an external and internal URL?


    If the list isn't static, you could use a local traffic policy or iRule to rewrite the URLs in client requests and server responses.