I was just wondering how to redirect an old URL to a new one without being punished by Google.
The solution is to tell him we permanently moved the URL. So Google will change the URL soon or later 😉
Here's the code. Put this line into your .htaccess file (in your root folder).
First the old one and after the new one: