Subdomains allows users to setup there main categories as subdomains. It's a lite and fast code.
My blog is based on this plugin: http://pankajanupam.com
1- Goto : cPanel > Subdomains
2- Crease a new subdomain as below : Subdomain : * Document Root : public_html
then press the create button and you R done.
I hope it helps …