Manual:$wgDisableHardRedirects

Details
Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link.