Fixed incorrect URLs with double ports in redirects