How to use different domains for different blogs hosted in the same host in subdomains with .htaccess

You need a vhost for the subdomain that redirects to public_html/sub_domain_folder instead of trying to redirect with .htaccess. You can then do a www redirect in public_html/sub_domain_folder/.htaccess.

There should be some option in cpanel when creating the subdomain do specify which folder it directs to if you don’t have direct access to your vhost.