This interactive document explains the steps that the redirection server takes to determine the best URL to use.
After being submitted, the parameters go through validation before the redirect logic starts.
Next step
Attempt to connect to the origin with a timeout of 200ms.
If the timeout triggers, force the use of the Internet Archive and don't try to check if the url is responding.
url
Decide what would happen next in the logic.
Do you want the origin connection succeed? yes no
Source
HEAD
405
GET
timeout
If match-origin is set, check the origin of the redirect (from the target url). If it doesn't match, then use the Internet Archive
match-origin
If the url was redirected to the root of the server (and the url wasn't the root) then treat as a 404 and use the Internet Archive
404
Otherwise, treat as legitimate and do not use Internet Archive
Redirect the user to the original url with a 301 "Moved permanently" status code.
301
End of logic
Use the wayback CDX API to query for status code 200 and attempt to collect the latest entry if no date given, and first entry if a date is given.
If the Internet Archive request is successful, redirect the user to the stored URL with 301 "Moved permanently" status.
If it fails, or there's no data for the given url, then the user is redirected to the original url with 302 "Found" status.
302
Given your parameters, the result would redirect to:
checking…