in addition to washing, there are other rules that also apply to those who enter the mosque, even if they do not wish to pray there. it is forbidden to wear shoes in the carpeted area of the prayer hall. some mosques also do not allow wearing shoes in other parts, even though these may not be devoted to praying.