Forum Discussion

Shannon_Thompso's avatar
Shannon_Thompso
Icon for Nimbostratus rankNimbostratus
Dec 10, 2020

URL Rewrite?

This is not my realm so first time trying to do iRules, I have the following redirect code that works (remove actual site names):   when HTTP_REQUEST { set new_path [string trim [string tolowe...
  • Hamish's avatar
    Dec 11, 2020

    It's possible if abs.abc.com site is accessible from the BigIP... By simply using a pool for abc.abc.com's (Even if you have to create a new one) to service requests that hit /reseller/

     

    BTW, I'd use starts_with rather than contains... Otherwise the URL /something/reseller/something will get redirected as well, which doesn't match your stated requirement https://clouddocs.f5.com/api/irules/starts_with.html

     

    i.e.

    1. Create pool for abc.abc.com
    2. Replace HTTP::redirect with POOL $pool_name (https://clouddocs.f5.com/api/irules/pool.html)

     

    H