Given the advantages of high power conversion efficiencies (PCEs), antisolvent-step free, and suitability for device production in ambient conditions, perovskite solar cells (PSCs) based on ionic-liquid solvents have attained particular research interest. To further improve device performance, light management could be optimized to increase light harvesting in the perovskite layer. Here, we fabricate ordered honeycomb-like TiO2 (Hc-TiO2) structures with a periodicity of ~450 nm through a sacrificial template method. With this photonic crystal structure, the control to light flow and the confinement effect for perovskite growth are achieved simultaneously in the Hc-TiO2, leading to improved light absorption as well as preferred crystal orientation. Furthermore, a reduced trap-state density and a well-aligned energy level induced by the perovskite/pore interlayer facilitate the charge-carrier extraction from the perovskite layer to electron transport layer. As a result, the structured devices perform better than the planar cells. And the angular dependent J-V sweeps show that the structured device reserves 76% of its initial short circuit current density (Jsc) whereas the planar cell gives more than a half loss under the incident light of 40°, demonstrating a reduced downward trend in Jsc with the presence of photonic crystal structures. This occurrence also suggests that the structured PSCs in this work have a high tolerance to optical path changes.