Added preg_replace for protocol in get path.