Taxonomy Rewrite Problem

I would think that .com/genre/comedy is actually picked up by the second rule since it matches that as well, and because it is added first I think it takes precedence.

You could try to swap the order, so it goes 3, 4, 1, 2.

For production, you might want to remove flush_rewrite_rules();, I believe it’s quite expensive.