URI based redirect with class-lists
With the release of 2.7.0 it's possible to reference class-lists in aFleX and it's possible to store strings in a class-list. This combination simplifies the required aFleX needed as the lists of redirects is kept in the class-list.
The class-list:
The aFleX:
The class-list:
class-list cl-redirects string
str /exchange https://sample.domain.tld/exchange
str /sharepoint https://sample.domain.tld/sharepoint
!
The aFleX:
when HTTP_REQUEST {
set URI [HTTP::uri]
set redirect_url [CLASS::match $URI equals cl-redirects value]
if { $redirect_url != ""} {
HTTP::redirect $redirect_url
}
}
0