Forum Discussion
Kai_Wilke
Feb 01, 2016MVP
Hi Chris,
you may try the snippet below. It uses the
[string range]
syntax, to cut the first 20 characters from the requested [HTTP::uri]
to build the redirect location...
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/techservices/govern/apr" } then {
HTTP::redirect "https://sharepoint2/sites[string range [HTTP::uri] 20 end]"
}
}
Cheers, Kai