Redirecting pywb captures

What is the best way to redirect the pywb captures to the closest ones in case the one chosen by the user returns a ‘not found’. We have tried all the configurations we have seen in the documentation, but none of them have worked.
Thanks!