{"id":3278,"date":"2014-06-05T20:21:57","date_gmt":"2014-06-05T20:21:57","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2014\/06\/05\/free-cloudflare-opencart-ssl\/"},"modified":"2023-12-22T15:30:43","modified_gmt":"2023-12-22T20:30:43","slug":"free-cloudflare-opencart-ssl","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/","title":{"rendered":"Using Free Cloudflare for SSL on OpenCart 1.5"},"content":{"rendered":"<p>Many people have decided to use the free <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/setting-up-cloudflare\/\">CloudFlare CDN service<\/a> with their website. The free option does not allow the use of SSL through CloudFlare. However, there is a workaround that lets you use it with your OpenCart site.<\/p>\n<p>CLoudFlare uses the www subdomain to route through CloudFlare&#8217;s servers. This allows your site <em>www.example.com<\/em> to be seen via the cached version oncloudflare as opposed to processing directly from InMotion&#8217;s servers. However, by setting up the HTTPS configuration to use the NON-www version of your site for SSL (<em>example.com<\/em>) then the visitor will be routed past the CloudFlare servers directly to the InMotion servers.<\/p>\n<p>This change will need to be made by editing the <em>config.php<\/em> file for your OpenCart. Below are the step by step instructions.<\/p>\n<ol class=\"article_list\">\n<li><a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/how-to-log-into-cpanel\/\">Log into your cPanel dashboard<\/a>.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li>Using the <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/using-file-manager-in-cpanel\/\">File Manager<\/a>, navigate to the root folder for your OpenCart.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li>Open the <strong>config.php<\/strong> file for editing.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li>Ensure the HTTP and HTTPS settings are set up similar to the code listed below. Make sure you replace <em>example.com<\/em> with your own domain name.\n<pre>\/\/ HTTP define('HTTP_SERVER', 'https:\/\/www.example.com');  \/\/ HTTPS define('HTTPS_SERVER', 'https:\/\/example.com');<\/pre>\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li>Save the file by clicking the <strong>Save Changes<\/strong> button in the upper right corner.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li>Staying in the File Manager, navigate to the <em>admin\/config.php<\/em> file.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li>Open it for editing.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li>Set the HTTP and HTTPS settings similar to the following, remembering to replace <em>example.com<\/em> with your own domain name.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li>\n<pre>\/\/ HTTP define('HTTP_SERVER', 'https:\/\/www.example.com\/admin\/'); define('HTTP_CATALOG', 'https:\/\/www.example.com\/');  \/\/ HTTPS define('HTTPS_SERVER', 'https:\/\/example.com\/admin\/'); define('HTTPS_CATALOG', 'https:\/\/exmple.com\/');<\/pre>\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li>Click the <strong>Save Changes<\/strong> button to save the file.\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<\/ol>\n<p>Now when your site is visited via non-www, it will route through InMotion Hosting&#8217;s servers and when the regular www version is visited, it will use CloudFlare.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many people have decided to use the free CloudFlare CDN service with their website. The free option does not allow the use of SSL through CloudFlare. However, there is a workaround that lets you use it with your OpenCart site. CLoudFlare uses the www subdomain to route through CloudFlare&#8217;s servers. This allows your site www.example.com<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/\"> Read More ><\/a><\/p>\n","protected":false},"author":8,"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":[81],"tags":[],"class_list":["post-3278","post","type-post","status-publish","format-standard","hentry","category-opencart"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Using Free Cloudflare for SSL on OpenCart 1.5 | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Instructions on using the Free Cloudflare to use SSL for your OpenCart.\" \/>\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\/edu\/opencart\/free-cloudflare-opencart-ssl\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using Free Cloudflare for SSL on OpenCart 1.5 | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Instructions on using the Free Cloudflare to use SSL for your OpenCart.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/\" \/>\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=\"2014-06-05T20:21:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-22T20:30:43+00:00\" \/>\n<meta name=\"author\" content=\"Scott Mitchell\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Scott Mitchell\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/\"},\"author\":{\"name\":\"Scott Mitchell\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed\"},\"headline\":\"Using Free Cloudflare for SSL on OpenCart 1.5\",\"datePublished\":\"2014-06-05T20:21:57+00:00\",\"dateModified\":\"2023-12-22T20:30:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/\"},\"wordCount\":276,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"OpenCart\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/\",\"name\":\"Using Free Cloudflare for SSL on OpenCart 1.5 | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2014-06-05T20:21:57+00:00\",\"dateModified\":\"2023-12-22T20:30:43+00:00\",\"description\":\"Instructions on using the Free Cloudflare to use SSL for your OpenCart.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using Free Cloudflare for SSL on OpenCart 1.5\"}]},{\"@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\/d850efb28ef3573db7d24b0d8fa9eaed\",\"name\":\"Scott Mitchell\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/scott\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using Free Cloudflare for SSL on OpenCart 1.5 | InMotion Hosting","description":"Instructions on using the Free Cloudflare to use SSL for your OpenCart.","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\/edu\/opencart\/free-cloudflare-opencart-ssl\/","og_locale":"en_US","og_type":"article","og_title":"Using Free Cloudflare for SSL on OpenCart 1.5 | InMotion Hosting","og_description":"Instructions on using the Free Cloudflare to use SSL for your OpenCart.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2014-06-05T20:21:57+00:00","article_modified_time":"2023-12-22T20:30:43+00:00","author":"Scott Mitchell","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Scott Mitchell","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/"},"author":{"name":"Scott Mitchell","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed"},"headline":"Using Free Cloudflare for SSL on OpenCart 1.5","datePublished":"2014-06-05T20:21:57+00:00","dateModified":"2023-12-22T20:30:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/"},"wordCount":276,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["OpenCart"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/","name":"Using Free Cloudflare for SSL on OpenCart 1.5 | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2014-06-05T20:21:57+00:00","dateModified":"2023-12-22T20:30:43+00:00","description":"Instructions on using the Free Cloudflare to use SSL for your OpenCart.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/free-cloudflare-opencart-ssl\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Using Free Cloudflare for SSL on OpenCart 1.5"}]},{"@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\/d850efb28ef3573db7d24b0d8fa9eaed","name":"Scott Mitchell","url":"https:\/\/www.inmotionhosting.com\/support\/author\/scott\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3278","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\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=3278"}],"version-history":[{"count":2,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3278\/revisions"}],"predecessor-version":[{"id":84254,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3278\/revisions\/84254"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=3278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=3278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=3278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}