Only apply redirects on 404

Only apply redirects on 404. If this is set to default, I believe the effect on performance would be negligible. Most pages will no longer search redirects, leading to an overall increase in performance. Processing to get to `template_redirect` for 404 requests shouldn't be noticeable from a user's perspective.