How to track 404 pages and redirect them in WordPress