Redirection_manager is a project mainly written in PHP, it's free.
Manage 301 and other redirections and keep track of 404 errors.