Known for his flashy outfits, the Dera chief was attired in a white kurta-pyjama with matching white shoes as the judge sentenced him to 20 years in jail.
The actor's arrest had sparked social media outrage with people calling it an attack on the freedom of speech.
Dera Sacha Sauda, a quasi-religious cult with hundreds of thousands of followers, offers a wide variety of products and educational and health services, its website states.
Comedian Kiku Sharda who features in the hit television show Comedy Nights With Kapil has been arrested for imitating self-styled spiritual guru Baba Gurmeet Ram Rahim Singh, according to news agency ANI.