{"id":43025,"date":"2019-05-29T15:03:35","date_gmt":"2019-05-29T20:03:35","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=43025"},"modified":"2021-11-19T01:30:32","modified_gmt":"2021-11-19T06:30:32","slug":"force-https-grav","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/","title":{"rendered":"How do I Force HTTPS in Grav CMS?"},"content":{"rendered":"<p>Grav allows you to force SSL (HTTPS) usage within the configuration file or admin plugin. Note that Grav recommends in a <a href=\"https:\/\/github.com\/getgrav\/grav\/issues\/889#issuecomment-245512004\" rel=\"noopener noreferrer\" target=\"_blank\">Github thread<\/a> to use the <a href=\"\/support\/website\/ssl\/how-to-force-https-using-the-htaccess-file\/\" rel=\"noopener noreferrer\" target=\"_blank\">.htaccess file<\/a> instead for faster website performance. Below we <strong>enable HTTPS using SSH or the <a href=\"\/support\/website\/install-grav-cms-admin\/#dashboard\" rel=\"noopener noreferrer\" target=\"_blank\">admin plugin<\/a><\/strong>.<\/p>\n\n\n\n<p><a class=\"btn btn-primary\" href=\"#ssh\" type=\"button\">SSH<\/a><a class=\"btn btn-primary\" href=\"#plugin\" type=\"button\">Plugin<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ssh\">Force SSL in CLI<\/h2>\n\n\n\n<ol class=\"article_list wp-block-list\"><li>Log into <a href=\"\/support\/website\/how-to-edit-a-file\/\" rel=\"noopener noreferrer\" target=\"_blank\">cPanel File Manager or FTP<\/a>.<\/li><li>Navigate to the <em>\/user\/config<\/em> folder.<\/li><li>Open the <em>system.yaml<\/em> file.<\/li><li>Change <span class=\"cli\">force_ssl: false<\/span> to <span class=\"cli\"><em>true<\/em><\/span>.<\/li><li>Save your changes.<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"plugin\">Force SSL with Admin Plugin<\/h2>\n\n\n\n<ol class=\"article_list wp-block-list\"><li>Log into Grav.<br>\n<a rel=\"lightbox-0\" href=\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-force-ssl.png\"><img decoding=\"async\" title=\"Click for full image\" alt=\"Force SSL in Grav\" src=\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-force-ssl.png\"><\/a><div style=\"clear:both;\"><li>Select <strong>Configuration<\/strong>.<\/li><li>At the bottom, select <strong>Yes<\/strong> beside <em>Force SSL<\/em>.<\/li><li>Press <strong>Save<\/strong> at the top.<\/li>\n\n\n\n<p>After this, <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/grav-backups\/\">configure scheduled backups<\/a>. Learn more about Grav in our <a aria-label=\" (opens in a new tab)\" href=\"\/support\/website\/grav-backups\/\" target=\"_blank\" rel=\"noreferrer noopener\">Support Center<\/a>. Want another option to improve <a aria-label=\" (opens in a new tab)\" href=\"\/support\/website\/clear-grav-cache\/\" target=\"_blank\" rel=\"noreferrer noopener\">caching in Grav<\/a>? Optimize your Grav website performance with our <a aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.inmotionhosting.com\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress Hosting<\/a> <em>(not just for WordPress)<\/em> and Nginx <strong>Cache Manager<\/strong>.<\/p>\n<\/div><\/li><\/ol>","protected":false},"excerpt":{"rendered":"<p>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. SSHPlugin Force SSL in CLI Log into cPanel File Manager or FTP.<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57014,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4288],"tags":[],"class_list":["post-43025","post","type-post","status-publish","format-standard","hentry","category-website"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How do I Force HTTPS in Grav CMS? | InMotion Hosting<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How do I Force HTTPS in Grav CMS? | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"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. SSHPlugin Force SSL in CLI Log into cPanel File Manager or FTP. Read More &gt;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-29T20:03:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-19T06:30:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-force-ssl.png\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\"},\"headline\":\"How do I Force HTTPS in Grav CMS?\",\"datePublished\":\"2019-05-29T20:03:35+00:00\",\"dateModified\":\"2021-11-19T06:30:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/\"},\"wordCount\":145,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-force-ssl.png\",\"articleSection\":[\"Website\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/\",\"name\":\"How do I Force HTTPS in Grav CMS? | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-force-ssl.png\",\"datePublished\":\"2019-05-29T20:03:35+00:00\",\"dateModified\":\"2021-11-19T06:30:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-force-ssl.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-force-ssl.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How do I Force HTTPS in Grav CMS?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How do I Force HTTPS in Grav CMS? | InMotion Hosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/","og_locale":"en_US","og_type":"article","og_title":"How do I Force HTTPS in Grav CMS? | InMotion Hosting","og_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 performance. Below we enable HTTPS using SSH or the admin plugin. SSHPlugin Force SSL in CLI Log into cPanel File Manager or FTP. Read More >","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2019-05-29T20:03:35+00:00","article_modified_time":"2021-11-19T06:30:32+00:00","og_image":[{"url":"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-force-ssl.png","type":"","width":"","height":""}],"author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644"},"headline":"How do I Force HTTPS in Grav CMS?","datePublished":"2019-05-29T20:03:35+00:00","dateModified":"2021-11-19T06:30:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/"},"wordCount":145,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-force-ssl.png","articleSection":["Website"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/","name":"How do I Force HTTPS in Grav CMS? | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-force-ssl.png","datePublished":"2019-05-29T20:03:35+00:00","dateModified":"2021-11-19T06:30:32+00:00","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-force-ssl.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/grav\/grav-force-ssl.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/force-https-grav\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How do I Force HTTPS in Grav CMS?"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/43025","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57014"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=43025"}],"version-history":[{"count":10,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/43025\/revisions"}],"predecessor-version":[{"id":91894,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/43025\/revisions\/91894"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=43025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=43025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=43025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}