Depending if you are hosted on linux or windows servers both methods are listed below:
If hosted on linux server create or edit the file called .htaccess in the root of your domain folder. Change yourdomain.com to your actual domain name.
RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://www.yourdomain.com/$1 [R,L]
If hosted on windows server create or edit the file called web.config in the root of your domain folder. Change yourdomain.com to your actual domain name.