In cPanel, install a certificate with Run AutoSSL under SSL/TLS Status, then set the domain's Force HTTPS Redirect switch to On under Domains. In Plesk, open Hosting Settings for the domain and tick the permanent 301 redirect from HTTP to HTTPS. On any Apache host, a rewrite rule at the top of .htaccess does the same job. Every method needs a valid SSL certificate installed first.
Forcing HTTPS ensures all visitors connect to your website over an encrypted connection. Without HTTPS enabled, browsers flag your site as insecure and visitors see warnings that damage trust. This prevents data interception and confirms your SSL/TLS certificate is protecting every page.
You will configure server-level redirects to force HTTPS connections. This works by automatically redirecting HTTP requests to their HTTPS equivalents, ensuring no visitor accidentally loads an insecure version of your site.
The .htaccess file controls server behaviour for your website. Adding redirect rules here forces all HTTP traffic to HTTPS at the server level, which works across all pages automatically.
In cPanel, click the Settings icon in the top right corner of File Manager. Tick the box labelled Show Hidden Files (dotfiles) and click Save. This makes the .htaccess file visible.

Enable hidden files in cPanel File Manager settings.
Navigate to your website’s document root directory, typically named public_html or www. Find the .htaccess file in this directory.
Right-click the .htaccess file and select Edit. Add the following code at the top of the file:
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
This code checks if HTTPS is off and redirects the request to the HTTPS version using a permanent 301 redirect.
Click Save Changes in the top right corner of the editor. The redirect rules are now active.
Open your browser and visit http://yourdomain.co.uk (replacing yourdomain.co.uk with your actual domain). The URL should automatically change to https://yourdomain.co.uk.
In cPanel, AutoSSL installs a free SSL certificate and the Force HTTPS Redirect switch sends every visitor to the secure address. Install the certificate first, because cPanel only lets you turn on the redirect for a domain with a valid certificate.
Log in to cPanel and locate the Security section. Click SSL/TLS Status.

SSL/TLS Status in the cPanel Security section.
Tick the checkbox next to the domain you want to secure. If multiple domains are listed, select only the one you are configuring.
Click Run AutoSSL at the top of the page. cPanel requests a certificate from the issuing authority and installs it automatically. Wait for the success notification to appear.

Run AutoSSL to install and configure SSL certificates.
In the Domains section, click Domains. Find your domain in the list and set its Force HTTPS Redirect switch to On.
Visit your website using https://yourdomain.co.uk. The padlock icon should appear in your browser’s address bar, confirming the secure connection.
Plesk includes built-in SSL management and redirect options. You will enable SSL support and configure a permanent redirect in the hosting settings for your domain.
Log in to Plesk and click Websites & Domains in the left sidebar. This displays all domains on your hosting account.
Find the domain you want to configure and click Hosting Settings from the options menu.
Scroll to the Security section. Tick the boxes for SSL/TLS support and Permanent SEO-safe 301 redirect from HTTP to HTTPS. This forces all HTTP traffic to redirect to HTTPS using a search engine friendly redirect.
Use the dropdown menu to select the correct SSL certificate for your domain. If you have installed a certificate through Plesk, it appears in this list.
Click OK at the bottom of the page. Plesk applies the settings and your site now forces HTTPS connections.
Your website now forces HTTPS connections for all visitors. You configured server-level redirects using .htaccess, cPanel’s Force HTTPS Redirect switch or Plesk hosting settings. Browsers display the padlock icon, confirming your SSL/TLS certificate is protecting visitor data.
Test your site by visiting different pages and checking that the URL always shows https://. Our web hosting plans include free SSL certificates and automatic HTTPS configuration.
Did this guide solve your problem?
Our UK support team answers tickets and live chat every day. Send us the guide you were following and where it stopped working.
Related guides
cPanel hosting with the tools these guides use, backed by UK support.
Get cPanel HostingProtect your visitors with SSL certificates – from budget DV to premium EV certificates.
Get SSL Certificate