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.
Force SSL with Admin Plugin
- Log into Grav.
- Select Configuration.
- At the bottom, select Yes beside Force SSL.
- Press Save at the top.
After this, configure scheduled backups. Learn more about Grav in our Support Center. Want another option to improve caching in Grav? Optimize your Grav website performance with our WordPress Hosting (not just for WordPress) and Nginx Cache Manager.
Post navigation