You will need to provide the below code to your hosting provider to set the rule. This rule needs to be write in httpd.ini file:
RewriteCond Host: ^domain\.com
RewriteRule (.*) http\://www\.domain\.com$1 [I,RP]
Replace domain with your actual domain name without TLD and .com with your TLD.
Kailash