redirect to WWW

How do I get my site to redirect to www., from what I read here im supposed to edit the config.local.php but I have no idea what code I need to use.

Right now you probably have something like:


// Host and directory where software is installed on no-secure server
$config['http_host'] = 'domain.com';
$config['http_path'] = '';




Just change it to:


// Host and directory where software is installed on no-secure server
$config['http_host'] = 'www.domain.com';
$config['http_path'] = '';




You’ll also need to do the SSL if need be.



Brandon

Thanks !!!