Solved bug #3959 (http 404 error on redirection) - Thanks to Yung