rebuild rules from url