Also ... Many people who think they're gluten-sensitive may actually be sensitive to FODMAPs. It's worth finding out because there are gluten-free foods that still contain these substances.
That hypothesis comes from an old study that got a lot of media attention at the time (2013 I think) but it has since been debunked. People with gluten sensitivity respond negatively to gluten even when on a non-FODMAP diet.