<?php $url = "https://login.some.site/a/b/c?redir=ef"; echo parse_url($url, PHP_URL_SCHEME) . '://' . parse_url($url, PHP_URL_HOST);
You have javascript disabled. You will not be able to edit any code.