Naked_url_for_s3 is a project mainly written in PHP, it's free.
inspired by http://wwwizer.com/ a dead simple naked domain redirector
404: Not Found