Fix EZP-23364

You also need to use `mb_stripos` and check if `$pathPrefix` is equal to `/`.