Add redirect to different port if not localhost