Forum Discussion

SNU's avatar
SNU
Icon for Nimbostratus rankNimbostratus
Sep 20, 2016

HTTP REDIRECT for Splashing using HEADER_NAME

Hi All,

 

I would like to full fill a requirement of HTTP Redirect for Splashing based on HTTP REQUEST HEADER_NAME

 

If the request contain a specific HEADER_NAME then redirect the request to Splash Page and Vice Versa.

 

Please let me know if you need additional details.

 

Thanks.

 

1 Reply

  • Try something like this:

    when HTTP_REQUEST {
      if { [HTTP::header exists "splash-uri"] } {
        HTTP::respond 301 Location "http://domain.com/splash.html"
      }
    }