modificando rootURL by isResource/isNum