ok, thanks for the code, it works great!
however, there is a small problem that is not that urgent, the user is redirected to only one url, so if he clicks on a page or a post, when he is redirected, he is taken to the index again, and has to start over, that might be annoying (got a few emails about it already, people do love to complain) is there a way to direct them to the equivalent of where they where in the clone page?