how to change example.com to www.example.com in wordpress

admin

Administrator
Staff member
I have tried lots of option to change my url. But I am not able to do so I have change the settings in wordpress general settings but it is not change the url from

example.com to www.example.com

I also added the these lines in wp-config

Code:
define('WP_HOME','http://www.example.com/');
define('WP_SITEURL','http://www.example.com/');

But this also not working. Please anybody guide me regarding this

Thanks