How to force use HTTPS IN CPANEL In cPanel,

In cPanel, you can force the use of HTTPS by redirecting all HTTP traffic to HTTPS. Here are the steps to do this:

  1. Log in to your cPanel account.
  2. In the "Domains" section, click on "Redirects."
  3. Select "Permanent (301)" as the type of redirect.
  4. In the "Redirects to" field, enter the full HTTPS URL of your website (e.g. https://www.example.com).
  5. In the "Redirects from" field, enter the full HTTP URL of your website (e.g. http://www.example.com).
  6. Click on the "Add" button to save the redirect.

You can also use .htaccess to redirect http to https

RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

It is advisable to test your website after making these changes to ensure that everything is working as expected.

  • Ssl Installation, How to install ssl certificate ussing let's encrypt
  • 62531 Users Found This Useful
Was this answer helpful?

Related Articles

How to install wordpress on cpanel using softaculase

To install WordPress using Softaculous, you will need to follow these steps: Log in to your...

How to install ssl on cpanel using let's encrypt

Sure, here are the steps on how to install an SSL certificate using Let's Encrypt in...

How To enable or disable a PHP extension using the PHP Selector in cPanel

To enable or disable a PHP extension using the PHP Selector in cPanel, you can follow these...

how to change PHP version in cPanel using MultiPHP Manager

Sure, here are the steps on how to change PHP version in cPanel using MultiPHP Manager: Log...

How to fixx maximum excute time increase in cpanel Ussing File manager

To increase the maximum execution time for PHP scripts in cPanel, you can follow these steps:...