Originally Posted by kael03
Third, the Uchiha hideout was located on a mountain on the outskirts of Konoha and the shrine was underground. Nagato's Shinra Tensei was centered on Konoha's central area, so the hideout escaped the blast. The building itself was destroyed by the fight between Sasuke and Itachi, the shrine survived.
The Naka shrine is located within Konoha and was destroyed during Pain's Invasion. The Uchiha had multiple hideouts, one of which Sasuke brought Hawk to back when they were Snake to get Juugo some clothes and pick up some stuff. Sasuke and Itachi fought at one much further away from Konoha than that.