Forum Discussion
Michael_Ozorows
Jan 24, 2018Nimbostratus
Simple switch statement for URI redirection?
Hi all,
I've fumbled around and hitting brick walls. We want this application (by default) to go to website.com/irj/portal.
If website.com/abc is typed we want a http redirect
If website.com/1...
JG
Jan 25, 2018Cumulonimbus
Caching? Try this one:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/sap/opu" {
HTTP::respond 301 Location "http://nwgtw.corp.nielsen.com/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html" Cache-Control no-cache Connection close
}
"/abc" {
HTTP::respond 301 Location "http://abc.com" Cache-Control no-cache Connection close
}
"/123" {
HTTP::respond 301 Location "http://123.com" Cache-Control no-cache Connection close
}
"/xyz" {
HTTP::respond 301 Location "http://xyz.com" Cache-Control no-cache Connection close
} default {
HTTP::respond 301 Location "https://website.com/irj/portal" Cache-Control no-cache Connection close
}
}
}
.
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