How about redirecting the first URL to the second? Updating the fragment part via JavaScript shouldn't hit the server so that wouldn't be affected by the redirect. If you did get into a situation where it inadvertantly redirects then you could just check the referrer to prevent that.
I don't understand what you mean. If you update the location with location.href, the page will reload. I think the poster wanted to avoid reloads, hence the whole point of using rsh.