in reply to Smart Forwarding Script upon 404

(You knew this was coming... {grin}.)

See my WT column on that very topic.