In this paper, we presented a novel double-layer light-trapping structure consisting of nanopores and nanograting positioned on both the surface and bottom of a gallium oxide-based solar-blind photodetector. Utilizing the finite element method (FEM), we thoroughly investigated the light absorption enhancement capabilities of this innovative design. The simulation results show that the double-layer nanostructure effectively combines the light absorption advantages of nanopores and nanogratings. Compared with thin film devices and devices with only nanopore or nanograting structures, double-layer nanostructured devices have a higher light absorption, achieving high light absorption in the solar blind area.