Redirecting old file URLs (no pattern)
Goto http://YOURSITE/admin/config/system/site-information and under "ERROR PAGES
" change "Default 404 (not found) page" to your search page. In this way, Drupal will redirect all 404 pages to the page that you have provided.