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.

public_html or www. Find the .htaccess file in this directory.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.
http://yourdomain.co.uk (replacing yourdomain.co.uk with your actual domain). The URL should automatically change to https://yourdomain.co.uk.cPanel provides AutoSSL, which installs free SSL certificates and configures HTTPS automatically. This method handles both certificate installation and HTTPS enforcement through the control panel interface.


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.
Your website now forces HTTPS connections for all visitors. You configured server-level redirects using .htaccess, cPanel AutoSSL 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.
Launch your website with our reliable cPanel hosting with unlimited bandwidth and expert support.
Get cPanel Hosting