Ans: Although there is no particular rule about the dress code to enter a Gurudwara. but, don't forget to cover your head with a scarf and taking off your shoes before going there.
Sri Darbar Sahib Amritsar (The Golden Temple Amritsar) in Amritsar, does indeed have a dress code. Before entering the Gurudwara complex, visitors must show respect by covering their heads with a scarf or other head covering. Men and women must also take off their shoes in order to enter the premises. For the sake of respecting the site's sacred significance. Dress modestly and stay away from items that expose too much skin, like shorts, miniskirts, and sleeveless shirts.
There are certain guidelines to follow:
Photography is allowed only at the outer Parikrama (the periphery/ the outer boundary). One needs to take special permission for photography inside the main gurudwara.