Forum Discussion
yoch_350532
Nimbostratus
Jul 19, 2018Redirection 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
- Lee_Sutcliffe
Nacreous
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/" } }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects