Forum Discussion
Ujjwal_142598
Nimbostratus
Apr 17, 2018URL redirection not working for below Irule
when HTTP_REQUEST {
if { ([HTTP::host] contains "act-mapviewer.aer.ca")}{
switch -glob [string tolower [HTTP::uri]] {
/Html5/Index.html?viewer=aerscheme { HTTP::redirect https://extmapviewer-...
JG
Cumulonimbus
Apr 18, 2018when HTTP_REQUEST {
if { ([HTTP::host] contains "act-mapviewer.aer.ca") } {
switch -glob [HTTP::uri] {
"/Html5/Index.html?viewer=aerscheme" {
HTTP::redirect https://extmapviewer-uat.aer.ca/AER/index.html?viewer=aerscheme
}
"/geometryserver" {
HTTP::redirect http://[getfield [HTTP::host] ":" 1]:8080/arcgis/rest/services/Utilities/Geometry/GeometryServer
}
"/" {
HTTP::redirect https://extmapviewer-uat.aer.ca/AER/index.html?viewer=aerscheme
}
}
}
}
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