---
title: "How do I Force HTTPS in Grav CMS?"
description: "Grav allows you to force SSL (HTTPS) usage within the configuration file or admin plugin. Note that Grav recommends in a Github thread to use the .htaccess file instead for faster website..."
url: https://www.inmotionhosting.com/support/website/force-https-grav/
date: 2019-05-29
modified: 2021-11-19
author: "InMotion Hosting Contributor"
categories: ["Website"]
type: post
lang: en
---

# How do I Force HTTPS in Grav CMS?

Grav allows you to force SSL (HTTPS) usage within the configuration file or admin plugin. Note that Grav recommends in a [Github thread](https://github.com/getgrav/grav/issues/889#issuecomment-245512004) to use the [.htaccess file](/support/website/ssl/how-to-force-https-using-the-htaccess-file/) instead for faster website performance. Below we **enable HTTPS using SSH or the [admin plugin](/support/website/install-grav-cms-admin/#dashboard)**.

[SSH](#ssh)[Plugin](#plugin)

## Force SSL in CLI

1. Log into [cPanel File Manager or FTP](/support/website/how-to-edit-a-file/).
2. Navigate to the */user/config* folder.
3. Open the *system.yaml* file.
4. Change force_ssl: false to *true*.
5. Save your changes.

## Force SSL with Admin Plugin

1. Log into Grav. [![Force SSL in Grav](https://www.inmotionhosting.com/support/images/stories/grav/grav-force-ssl.png)](https://www.inmotionhosting.com/support/images/stories/grav/grav-force-ssl.png)Select **Configuration**.At the bottom, select **Yes** beside *Force SSL*.Press **Save** at the top. After this, [configure scheduled backups](https://www.inmotionhosting.com/support/website/grav-backups/). Learn more about Grav in our [Support Center](/support/website/grav-backups/). Want another option to improve [caching in Grav](/support/website/clear-grav-cache/)? Optimize your Grav website performance with our [WordPress Hosting](https://www.inmotionhosting.com/wordpress-hosting) *(not just for WordPress)* and Nginx **Cache Manager**.
