Make a HEAD request against the ?edit URL and only redirect if it returns 200 OK. We do this in ACMI's Redirect404Middleware which sends 404s to the 2015 site only if the requested page exists there.
This would also avoid misleading users with an impression that they are viewing a preview version of a 404 page. See ixc/acmi#260
Make a
HEAD
request against the?edit
URL and only redirect if it returns200
OK. We do this in ACMI'sRedirect404Middleware
which sends 404s to the 2015 site only if the requested page exists there.This would also avoid misleading users with an impression that they are viewing a preview version of a 404 page. See ixc/acmi#260