Skip to content

WHM / Cpanel

WHM / cPanel ssl (http to https redirection process)

  • Uzman Tescil Editorial Team
  • 1 min read
WHM / cPanel ssl (http to https redirection process)
WHM / Cpanel

In short

  • After the SSL certificate is installed, visitors must be redirected to HTTPS.
  • The redirect is done with rules added to the .htaccess file in public_html.
  • In recent cPanel versions, the “Force HTTPS Redirect” toggle does the same in one click.
Contents
  1. The easier way: Force HTTPS Redirect
  2. Post-redirect checklist

SSL Certificate (http to https redirection process).

  1. https: //siteaddress.com: 2083 with cPanel user information login.
  2. Enter the file manager and open the public_html folder.
  3. In order to see the .htaccess file, select the show dot files option and save it.
  4. Right-click htaccess file and click edit to open the editor, add the following code by editing it according to your own.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?siteadi\.com
RewriteRule ^(.*)$ https://www.siteadi.com/$1 [R,L]
Laptop showing a secure connection icon in the browser
An SSL certificate protects data by encrypting it between visitors and your site.

The easier way: Force HTTPS Redirect

In recent cPanel versions you can enable the redirect from the panel without editing .htaccess:

  1. Log in to cPanel and open the Domains section.
  2. Turn on the Force HTTPS Redirect toggle on the domain’s row.
  3. Open the site with http:// and check that it redirects to https:// automatically.

Post-redirect checklist

  • Make sure images, CSS and JS are loaded over HTTPS (mixed content warning).
  • Add the HTTPS version to Google Search Console and resubmit your sitemap.
  • Using a permanent (301) redirect preserves search engine rankings.

Share this article

Uzman Tescil Editorial Team

Guides drawn from over 17 years of domain, hosting and web design experience, written to move your business a step ahead online.

Fast and secure hosting

Hosting packages with an easy control panel, corporate e-mail and a free SSL certificate.

Keep reading

You may also like

What is Cpanel? What does Cpanel do? What is Cpanel Hosting? WHM / Cpanel

1 min read

What is Cpanel? What does Cpanel do? What is Cpanel Hosting?

What is Cpanel? Cpanel (Control Panel) is a popular, licensing web hosting control panel application that allows web hosting customers to perform their operations visually and interactively on Linux…

Read more
How to WHM / Cpanel

1 min read

How to

SpamAssassin is an automated email filtering system that works to identify spam messages based on the content and body of email headers. With SpamAssassin you can automatically delete messages marked…

Read more
WhatsApp Message us now Call Now 0533 273 43 24