---
title: How to force https redirect on your domain
description: "Once you have installed SSL and woudl like to autoredirect your site to https, please follow the steps below: **Step 1: Login to cPanel and navigate to File Manager ** ![](https://truehost.com/support/wp-content/uploads/2024/08/image-2.png) **Step 2: Go to your respective domain folder (public_html for…"
url: "https://truehost.com/support/knowledge-base/force-https-site-2/"
updated: "2024-08-15"
category: Cpanel
---

# How to force https redirect on your domain

Once you have installed SSL and woudl like to autoredirect your site to https, please follow the steps below:

**Step 1: Login to cPanel and navigate to File Manager **

![](https://truehost.com/support/wp-content/uploads/2024/08/image-2.png)

**Step 2: Go to your respective domain folder (public_html for main domains)**

On the to right, click Settings button and select Show Hidden Files then Save

![](https://truehost.com/support/wp-content/uploads/2024/08/image-3.png)

**Step 3: Copy the following code snippet to the .htaccess file and save.**

`RewriteEngine OnRewriteCond %{HTTPS} offRewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]`

![](https://truehost.com/support/wp-content/uploads/2024/08/image-4.png)

All done.
