Connecting a distribution rule to a GL account is for defining the default distribution rule for the account.
If you want to book the different kindes of items to book to different GL account, you can set these items for different item groups, define different GL accounts for these item groups and select for these items the Set G/L Accounts By to Item Group.