Forum Discussion

yoch_350532's avatar
yoch_350532
Icon for Nimbostratus rankNimbostratus
Jul 19, 2018

Redirection for https://www.

Hi i applied the below rule for redirection but not working for https://www.oasiscard.co.uk

 

when HTTP_REQUEST { if {[string tolower [HTTP::host]] eq ";} { HTTP::respond 301 Location "; }

 

}

 

1 Reply

  • You don't need to use semicolons and you can redirect with the HTTP::redirect command. This could also be done as part of an LTM traffic policy

    when HTTP_REQUEST { 
        if {[string tolower [HTTP::host]] eq "www.oasiscard.co.uk"} { 
            HTTP::redirect "https://myoasiscard.co.uk/" 
        }
    }