To make this Shoofly Pie gluten-free, substitute the all-purpose flour with a 1:1 gluten-free baking flour blend. Additionally, use a gluten-free pie crust or make a homemade version using gluten-free flour and butter. Ensure all other ingredients, including molasses and brown sugar, are certified gluten-free.