F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

ecwlam's avatar
ecwlam
Icon for Altostratus rankAltostratus
Dec 22, 2022
Solved

iRule redirection

May I know how to write the iRule with uri redirection? https://www.abc.com/aa  --> https://www.abc.com/bb including the correspoing link under https://www.abc.com/aa For example: https://www.abc...
  • muhamed_elfiky's avatar
    Dec 23, 2022

    Hi ecwlam 

     

    you can use this  IRule:

    when HTTP_REQUEST {

    if {[HTTP::uri] starts_with "/aa/"} {

    HTTP::uri [string map {"/aa/" "/bb/"}[HTTP::uri]]

    HTTP::redirect "[HTTP::uri]"

    }

    }