As a prerequisite, first install an SSL certificate on your domain.
You will need to either create a .htaccess file in the root of your webspace or if you already have one, edit the file. Take a look at the example below for reference.
You will need to write a redirect script, that redirects all requests to your website to https://
This script needs to be named default.asp and placed in the folder your domain is pointing to.