Optical switching of the Pendellözung effect in a porous silicon 1D photonic crystal at Bragg diffraction in Laue geometry is observed experimentally under an external optical illumination or direct thermal heating.