Your described behavior sounds odd, and thus I'd really like the opportunity to replicate your behavior. If you could post a self-contained code snippet that replicates your issue, I might be able to do just that. (wrap it in
tags while you are at it). The code you have posted above correctly performs the redirects for me. See
.