The most likely reason why a code is not redirecting properly, is because you entered an invalid URL as a target URL
A valid URL starts with a protocol like http:// or https://
Correct is: http://www.mypage.com
Wrong is: www.mypage.com