The consumption of complementary foods can bring about diarrhea and intestinal barrier dysfunction in infants. In this study, three different Lactobacillus strains combined with L-tryptophan (Trp) were administered to rat pups with complementary foods. Complementary food feeding caused inflammatory cell infiltration, crypt structure irregularity and goblet cell reduction in the colon tissues of the rat pups. However, the oral administration of Trp combined with Lactiplantibacillus plantarum DPUL-S164 or Limosilactobacillus reuteri DPUL-M94 significantly restored the pathological changes in the colon tissues and inhibited the expression of pro-inflammatory cytokines in the colon and ileum of the rat pups. M94 or S164 combined with Trp intervention could promote the expression of cell differentiation genes and tight junction proteins, and restore the intestinal barrier damage caused by complementary foods in rat pups by activating the aryl hydrocarbon receptors (AhR) and nuclear factor erythroid 2-related factor 2 (Nrf2) pathway. In addition, the indole-3-lactic acid (ILA), indole-3-propionic acid (IPA), or indole-3-carbaldehyde (I3C) level in the cecal contents of the rat pups increased after intervention of Trp combined with S164 or M94, which may account for the amelioration of intestinal barrier damage in rat pups administered with complementary foods. Furthermore, S164 or M94 combined with Trp intervention up-regulated the relative abundance of f_Lactobacillaceae, f_Akkermansiaceae, g_Lactobacillus, and g_Akkermansia in the intestinal tract of the rat pups. In conclusion, S164 or M94 combined with Trp intervention can ameliorate complementary food-induced intestinal barrier damage and gut flora disorder in rat pups by producing ILA, IPA, or I3C, which are AhR ligands.