Forum Discussion
Stanislas_Piro2
Jun 02, 2017Cumulonimbus
Hi,
you can use this code:
when HTTP_REQUEST {
if {[scan $uri "/otcsEN/livelink.exe/Open/%d" id] && [string length $id] > 2 && [expr {([string length $id] % 2) != 0}]} {
HTTP::respond 302 Location " https://website2.com/_layouts/15/sharepoint.aspx?q=IDMSObject%3A${id}&v=search"
}
}
I configured to filter id with odd length greater than 2 (3, 5, 7, etc). the scan check the ID contains only numbers.