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 performance. Below we enable HTTPS using SSH or the admin plugin.
Force SSL in CLI
- Log into cPanel File Manager or FTP.
- Navigate to the /user/config folder.
- Open the system.yaml file.
- Change force_ssl: false to true.
- Save your changes.