Urls matching&building like a boss