Disabled Pretty URLS but .html-less links continue to work and be indexed by search engines

You can use Edge Functions to handle this:

but not with simple _redirects.