You will not get the credit of rights entitlements in this case. Since the RTA generates one folio against one demat account, and the allocation of rights entitlements happens folio wise, you will need to have the minimum number of shares, to be eligible for rights entitlement, in each of your demat accounts.