Forum Discussion

quattroginger's avatar
Icon for Nimbostratus rankNimbostratus
Sep 28, 2020

irule redirect help

looking for some assistance with creating a irule to redirect on 2 parts of a url. If someone hits my f5 going to  I want them to be redirected to 

can i just do...

  if { [HTTP::host] equals " " and [HTTP::uri] equals "/pages/app123" } {
    HTTP::redirect " "

will this work?

4 Replies

  • I don't see any syntax issue & irule should work.

    Would like to recommend irule which will work even though in upper case url.


    when HTTP_REQUEST {
     if { [string tolower [HTTP::host]] equals "" and [string tolower [HTTP::uri]] starts_with "/pages/app123" } {
      HTTP::redirect ""



    • Samir's avatar
      Icon for MVP rankMVP

      Yes... You can customise per requirements.