Use safer scan backwards to isolate the port in redirects
Fix for HTTP redirect with non-default port
Update doc