How to redirect the website from HTTP to HTTPS?

 

In this article you will learn how to redirect the users who enter the HTTP version of your site, towards the HTTPS version.

 

First of all, you will need to have SSL (HTTPS) installed, if your website is accessible by entering HTTPS in your address, then HTTPS works correctly.

 

 

When your account does not use WordPress

 

1) Enter cPanel> File manager and in the configuration option select to be able to view hidden files, then you will see the .htaccess file in the public_html directory. Create the file if you don't see it

2) Add the following in the beginning of the code in the .htaccess file:

RewriteEngine On

RewriteCond% {HTTPS} off

RewriteRule (. *) Https: //% {HTTP_HOST}% {REQUEST_URI}

3) Save the file and check the results in the web browser when trying to access your site using standard http instead of https.

 

If it works correctly, it should be automatically redirected to https.

 

 

When your account uses WordPress

 

1) Change the URL to https in General Settings from the WordPress Admin.

 2) Confirm if the site works with https,

 3) In case it doesn't work, follow the steps in the case without WordPress

 

 

When your account uses the Cloudflare service

 

1) Access the Cloudflare account where the domain is configured

 2) Go to the SSL / TLS section

 3) Select the "Edge Certificates" tab

 4) Set to On the option "Always use HTTPS"

 

 

 When your account uses Neolo Site Builder

 

1) Access the Neolo Site Builder from the cPanel

 2) Select the Settings icon, then "Tools"

 3) Check the option "Publish the Site with HTTPS forcing"

  

If you have any questions, please contact our support team

  • Email, SSL
  • 0 Los Usuarios han Encontrado Esto Útil
¿Fue útil la respuesta?

Related Articles

How do I add a new domain to my account in cPanel?

To Create an Addon Domain: Login to your cPanel and click Addon Domains, under Domains Tab....

PHP files are downloaded instead of executed, how do I solve it?

Sometimes it happens that when trying to access your website, instead of the PHP files being...

What steps should I follow so that a contact form created in WordPress can work?

  When we configure a contact form, WordPress uses PHP's mail () function by default to send...

What should I do if my website is blacklisted?

It is possible for a hacker to enter your web server without doing noticeable damage and you may...

How to fix: You Have Reached a Domain that is Pending ICANN Verification

If your website is redirected to a site owned by ICANN (the Internet Corporation for Assigned...