Forum Discussion

Reginald_Sible1's avatar
Reginald_Sible1
Icon for Nimbostratus rankNimbostratus
Apr 07, 2020

Default redirect to url and not pool.

Dev Central

 

How do i default the last line to a url and not pool the hub?

 

when HTTP_REQUEST {

 

  switch -glob [string tolower [HTTP::path]] {

   "/sso*" -   

   "/vznvoucher*" {

     pool NuNetTst_Pool_80

   }

   default {

     pool the_hub

   }

  }

}

1 Reply

  • This should work, basically redirecting everything that does not match to a different url:

    default {

    HTTP::redirect https://your_url_here

    }