What the Ottomons did or didn't do is irrelevent to whether it's permissible or not. As Mufti Taqi says Abu Hanifa has permitted non-permanent entry into the two cities.