Fix redirection on the same host