Posturl is a project mainly written in PHP, it's free.
PLUGIN: Change a posts URL to anything you want.
404: Not Found