In order to force redirection of your WordPress website from HTTP to HTTPS, the key task that you will need to do is to modify .htaccess file that is present in the root of the website directory.

If you check your wordpress install, you will have the following code by default in your .htaccess file.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# BEGIN WordPress
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

To force HTTP to HTTPS redirection, you will need to modify the file to

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Force redirect
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# BEGIN WordPress
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

If there are issues with the redirection, you will need to look at the WordPress > General settings in Admin section to see if the URL’s pointing to the resources are set correctly.