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 ";
}
} ...
Lee_Sutcliffe
Nacreous
Jul 19, 2018You 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/"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
