Making gluten-free magic bars requires substituting a gluten-free ingredient for the flour in the cookie base. AllRecipes.com offers a highly rated recipe for gluten-free magic bars, with a rating of 4.5 out of five stars. This recipe combines eggs, sugar and peanut butter to create a gluten-free cookie base.
Preheat the oven to 350 degrees Fahrenheit, then line a 9 by 13-inch glass baking dish with parchment paper. Set the baking dish aside. Combine 2 cups white sugar and 2 large eggs in a mixing bowl, and stir until smooth. Add 2 cups peanut butter to the mixture, and continue stirring until completely blended. Pour this mixture into the parchment-lined baking dish.
Bake the peanut butter mixture for eight minutes. Remove the partially cooked cookie base from the oven. Do not turn off the oven or change its temperature.
Pour 3/4 cup semisweet chocolate chips over the cookie base in an even layer. Layer 3/4 cup dark chocolate chips over the semisweet chips in another even layer. Repeat this step with 1/2 cup chopped raw pecans, 1/2 cup chopped raw almonds and 1 cup flaked coconut. Each ingredient should form a layer on top of the previous layer, with the coconut on top.
Slowly pour 1 14-ounce can of sweetened condensed milk over the top of the layered ingredients, covering them evenly. Bake the magic bars for approximately 30 minutes, or until the coconut is slightly browned. Allow to cool completely before removing from the pan, and peel parchment paper away from the cooled cookie base before cutting into bars.