There is no specific dress code for the palace. There is no general rule such as for women when they enter mosques. Additionally, there is the Dolmabahce Mosque built alongside the palace, which is worth a visit.