HTTPS Redirect for cPanel server

There are different methods to enable Force HTTPS Redirect.

Method1: in this method, you can Force HTTPS Redirect from cPanel. to enable this, login to your cPanel.

Navigate to "Domains" option inside cPanel, and you can see a button to turn on and off the "Force HTTPS Redirect". Simply turn on the option to redirect all traffic to HTTPS.

 

Method2: you can Force HTTPS Redirect using .htaccess file. for that from ftp or cPanel file manager add following lines on .htaccess file:

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

  • 6 Usuários acharam útil
Esta resposta lhe foi útil?

Related Articles

What I need to do to point up my domain to DDoSCure Hosting Servers?

After Purchasing any of our Hosting Server you will get an email with your service details and...

If I want to use my own Dns system what I need to do?

To use your own Dns server instead of DDoSCure dns system you just need to update your dns...

How Can I use ftp to upload files to my hosting server?

You can use any ftp software to upload files in server. if you got any error in log in to ftp...

Zend and Ioncube encoded files uploading rule?

Zend and Ioncube encoded files sometimes show error in server after uploading. To remove the...

IONCUBE Encoded Files Showing Error?

After uploading the encoded files in server using binary mode if you still face problems then you...