Regex adapted to capture root url apart from subdomain