Wouldn't it be way simpler to do this with an Apache rewrite?