{"id":1864,"date":"2014-10-22T19:00:09","date_gmt":"2014-10-23T02:00:09","guid":{"rendered":"http:\/\/www.virendrachandak.com\/techtalk\/?p=1864"},"modified":"2014-10-22T21:59:52","modified_gmt":"2014-10-23T04:59:52","slug":"how-to-enable-https-on-wordpress-using-cloudflare","status":"publish","type":"post","link":"https:\/\/www.virendrachandak.com\/techtalk\/how-to-enable-https-on-wordpress-using-cloudflare\/","title":{"rendered":"How to enable HTTPS on WordPress using CloudFlare"},"content":{"rendered":"<p>Recently, Google said it will use <a href=\"http:\/\/googleonlinesecurity.blogspot.co.uk\/2014\/08\/https-as-ranking-signal_6.html\" title=\"HTTPS as a ranking signal\" target=\"_blank\" rel=\"external nofollow\">HTTPS as a ranking signal<\/a>. So, if you are a website owner, you might be thinking of switching to HTTPS. However, that meant purchasing an SSL certificate. Last month CloudFlare announced <a href=\"http:\/\/blog.cloudflare.com\/introducing-universal-ssl\/\" title=\"Introducing Universal SSL\" target=\"_blank\" rel=\"external nofollow\">Universal SSL<\/a> which will allow all its customers (including free users) to be able to use SSL on their sites. So now, we can have SSL on our websites without having to pay for an SSL certificate. In this article we will see how we can use CloudFlare to enable HTTPS on WordPress for free. This article assumes you are already using ClodFlare on your website.<br \/>\n<!--more--><\/p>\n<p>CloudFlare provides <a href=\"https:\/\/support.cloudflare.com\/hc\/en-us\/articles\/200170416\" title=\"What do the SSL options (Off, Flexible SSL, Full SSL, Full SSL Strict) mean?\" target=\"_blank\">different SSL options<\/a> (Off, Flexible SSL, Full SSL, Full SSL Strict). Full SSL Strict requires purchasing an actual certificate, so I will not cover it in here. We can use Full SSL and Flexible SSL without having to purchase a certificate. For Full SSL we need an SSL certificate on your server, which can be a purchased or if you don&#8217;t want to buy one you can use a self-signed certificate. This method can be used if your host allows you to add a self-signed certificate. If you cannot add a self-signed certificate (most shared hosting don&#8217;t), then we cannot use Full SSL, instead will have to use Flexible SSL.<\/p>\n<h4>Flexible SSL<\/h4>\n<div>This method does not requires adding any SSL certificate on your server, so this will be easiest method to use if you are using shared hosting.<\/div>\n<div><strong>Important:<\/strong> Do not change your WordPress URL to use https. If you change the URLs then you won&#8217;t be able to access your site and get too many redirects or redirect loop error. If you see this error the only way to gain access back to your site is changing the URLs back to non-https in the database.<\/div>\n<div>Here are steps for this method:<\/div>\n<ol>\n<li>Enabled Flexible SSL on CloudFlare<\/li>\n<li>Install <a href=\"https:\/\/wordpress.org\/support\/plugin\/cloudflare-flexible-ssl\" title=\"CloudFlare Flexible SSL\" target=\"_blank\" rel=\"external nofollow\">CloudFlare Flexible SSL<\/a> WordPress plugin<\/li>\n<li>Visit your site using https. The website should load in the same way as when browsing without https. If there are some issues, then some assets might be getting loaded from http instead of https. To fix this you should use <a href=\"http:\/\/www.virendrachandak.com\/techtalk\/protocol-relative-urls\/\" title=\"Protocol relative URLs\">protocol relative URLs<\/a> in your site. Also, incase you are using forms (e.g search box), then make sure they submit to either a relative URL or a https URL, else you might see insecure content warning. You can also use plugins like <a href=\"https:\/\/wordpress.org\/plugins\/wordpress-https\/\" title=\"WordPress HTTPS (SSL)\" target=\"_blank\" rel=\"external nofollow\">WordPress HTTPS (SSL)<\/a><\/li>\n<li>Add a page rule on CloudFlare to redirect all traffic to HTTPS<\/li>\n<\/ol>\n<h4>Full SSL<\/h4>\n<p>This method can be used if you have purchased an SSL certificate or generated a self-signed SSL certificate. Here are the steps to enable SSL using this method.<\/p>\n<ol>\n<li>Add a self-signed or purchased certificate on your server<\/li>\n<li>Enable Full SSL on CloudFlare<\/li>\n<li>Visit your site using https and fix any issues as mentioned in step 3 for Flexible SSL<\/li>\n<li>Update the WordPress URLs to be HTTPS<\/li>\n<\/ol>\n<p>Using either of the above two methods you can easily enable https on your WordPress site without purchasing any SSL certificate.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, Google said it will use HTTPS as a ranking signal. So, if you are a website owner, you might be thinking of switching to HTTPS. However, that meant purchasing an SSL certificate. Last month CloudFlare announced Universal SSL which will allow all its customers (including free users) to be able to use SSL on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[138,6,91],"tags":[135,137,136],"class_list":["post-1864","post","type-post","status-publish","format-standard","hentry","category-seo","category-server-configuration","category-wordpress","tag-cloudflare","tag-https","tag-ssl"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to enable HTTPS on WordPress using CloudFlare - Virendra&#039;s TechTalk<\/title>\n<meta name=\"description\" content=\"Recently, Google said it will use HTTPS as a ranking signal. So, if you are a website owner, you might be thinking of switching to HTTPS. However, that\" \/>\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.virendrachandak.com\/techtalk\/how-to-enable-https-on-wordpress-using-cloudflare\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to enable HTTPS on WordPress using CloudFlare - Virendra&#039;s TechTalk\" \/>\n<meta property=\"og:description\" content=\"Recently, Google said it will use HTTPS as a ranking signal. So, if you are a website owner, you might be thinking of switching to HTTPS. However, that\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.virendrachandak.com\/techtalk\/how-to-enable-https-on-wordpress-using-cloudflare\/\" \/>\n<meta property=\"og:site_name\" content=\"Virendra&#039;s TechTalk\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/virendrachandak\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/virendrachandak\" \/>\n<meta property=\"article:published_time\" content=\"2014-10-23T02:00:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-10-23T04:59:52+00:00\" \/>\n<meta name=\"author\" content=\"Virendra Chandak\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@virendrachandak\" \/>\n<meta name=\"twitter:site\" content=\"@virendrachandak\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Virendra Chandak\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/how-to-enable-https-on-wordpress-using-cloudflare\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/how-to-enable-https-on-wordpress-using-cloudflare\\\/\"},\"author\":{\"name\":\"Virendra Chandak\",\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#\\\/schema\\\/person\\\/63f7ffa1ea125e32af9618d188349e17\"},\"headline\":\"How to enable HTTPS on WordPress using CloudFlare\",\"datePublished\":\"2014-10-23T02:00:09+00:00\",\"dateModified\":\"2014-10-23T04:59:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/how-to-enable-https-on-wordpress-using-cloudflare\\\/\"},\"wordCount\":516,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#\\\/schema\\\/person\\\/63f7ffa1ea125e32af9618d188349e17\"},\"keywords\":[\"CloudFlare\",\"HTTPS\",\"SSL\"],\"articleSection\":[\"SEO\",\"Server Configuration\",\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/how-to-enable-https-on-wordpress-using-cloudflare\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/how-to-enable-https-on-wordpress-using-cloudflare\\\/\",\"url\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/how-to-enable-https-on-wordpress-using-cloudflare\\\/\",\"name\":\"How to enable HTTPS on WordPress using CloudFlare - Virendra&#039;s TechTalk\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#website\"},\"datePublished\":\"2014-10-23T02:00:09+00:00\",\"dateModified\":\"2014-10-23T04:59:52+00:00\",\"description\":\"Recently, Google said it will use HTTPS as a ranking signal. So, if you are a website owner, you might be thinking of switching to HTTPS. However, that\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/how-to-enable-https-on-wordpress-using-cloudflare\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/how-to-enable-https-on-wordpress-using-cloudflare\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/how-to-enable-https-on-wordpress-using-cloudflare\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"TechTalk\",\"item\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SEO\",\"item\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/category\\\/seo\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to enable HTTPS on WordPress using CloudFlare\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#website\",\"url\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/\",\"name\":\"Virendra's TechTalk\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#\\\/schema\\\/person\\\/63f7ffa1ea125e32af9618d188349e17\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#\\\/schema\\\/person\\\/63f7ffa1ea125e32af9618d188349e17\",\"name\":\"Virendra Chandak\",\"logo\":{\"@id\":\"https:\\\/\\\/www.virendrachandak.com\\\/techtalk\\\/#\\\/schema\\\/person\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.virendrachandak.com\",\"https:\\\/\\\/www.facebook.com\\\/virendrachandak\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/virendrachandak\\\/\",\"https:\\\/\\\/x.com\\\/virendrachandak\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to enable HTTPS on WordPress using CloudFlare - Virendra&#039;s TechTalk","description":"Recently, Google said it will use HTTPS as a ranking signal. So, if you are a website owner, you might be thinking of switching to HTTPS. However, that","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.virendrachandak.com\/techtalk\/how-to-enable-https-on-wordpress-using-cloudflare\/","og_locale":"en_US","og_type":"article","og_title":"How to enable HTTPS on WordPress using CloudFlare - Virendra&#039;s TechTalk","og_description":"Recently, Google said it will use HTTPS as a ranking signal. So, if you are a website owner, you might be thinking of switching to HTTPS. However, that","og_url":"https:\/\/www.virendrachandak.com\/techtalk\/how-to-enable-https-on-wordpress-using-cloudflare\/","og_site_name":"Virendra&#039;s TechTalk","article_publisher":"https:\/\/www.facebook.com\/virendrachandak","article_author":"https:\/\/www.facebook.com\/virendrachandak","article_published_time":"2014-10-23T02:00:09+00:00","article_modified_time":"2014-10-23T04:59:52+00:00","author":"Virendra Chandak","twitter_card":"summary_large_image","twitter_creator":"@virendrachandak","twitter_site":"@virendrachandak","twitter_misc":{"Written by":"Virendra Chandak","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.virendrachandak.com\/techtalk\/how-to-enable-https-on-wordpress-using-cloudflare\/#article","isPartOf":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/how-to-enable-https-on-wordpress-using-cloudflare\/"},"author":{"name":"Virendra Chandak","@id":"https:\/\/www.virendrachandak.com\/techtalk\/#\/schema\/person\/63f7ffa1ea125e32af9618d188349e17"},"headline":"How to enable HTTPS on WordPress using CloudFlare","datePublished":"2014-10-23T02:00:09+00:00","dateModified":"2014-10-23T04:59:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/how-to-enable-https-on-wordpress-using-cloudflare\/"},"wordCount":516,"commentCount":5,"publisher":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/#\/schema\/person\/63f7ffa1ea125e32af9618d188349e17"},"keywords":["CloudFlare","HTTPS","SSL"],"articleSection":["SEO","Server Configuration","WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.virendrachandak.com\/techtalk\/how-to-enable-https-on-wordpress-using-cloudflare\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.virendrachandak.com\/techtalk\/how-to-enable-https-on-wordpress-using-cloudflare\/","url":"https:\/\/www.virendrachandak.com\/techtalk\/how-to-enable-https-on-wordpress-using-cloudflare\/","name":"How to enable HTTPS on WordPress using CloudFlare - Virendra&#039;s TechTalk","isPartOf":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/#website"},"datePublished":"2014-10-23T02:00:09+00:00","dateModified":"2014-10-23T04:59:52+00:00","description":"Recently, Google said it will use HTTPS as a ranking signal. So, if you are a website owner, you might be thinking of switching to HTTPS. However, that","breadcrumb":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/how-to-enable-https-on-wordpress-using-cloudflare\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.virendrachandak.com\/techtalk\/how-to-enable-https-on-wordpress-using-cloudflare\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.virendrachandak.com\/techtalk\/how-to-enable-https-on-wordpress-using-cloudflare\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"TechTalk","item":"https:\/\/www.virendrachandak.com\/techtalk\/"},{"@type":"ListItem","position":2,"name":"SEO","item":"https:\/\/www.virendrachandak.com\/techtalk\/category\/seo\/"},{"@type":"ListItem","position":3,"name":"How to enable HTTPS on WordPress using CloudFlare"}]},{"@type":"WebSite","@id":"https:\/\/www.virendrachandak.com\/techtalk\/#website","url":"https:\/\/www.virendrachandak.com\/techtalk\/","name":"Virendra's TechTalk","description":"","publisher":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/#\/schema\/person\/63f7ffa1ea125e32af9618d188349e17"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.virendrachandak.com\/techtalk\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.virendrachandak.com\/techtalk\/#\/schema\/person\/63f7ffa1ea125e32af9618d188349e17","name":"Virendra Chandak","logo":{"@id":"https:\/\/www.virendrachandak.com\/techtalk\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/www.virendrachandak.com","https:\/\/www.facebook.com\/virendrachandak","https:\/\/www.linkedin.com\/in\/virendrachandak\/","https:\/\/x.com\/virendrachandak"]}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2vTtQ-u4","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/posts\/1864","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/comments?post=1864"}],"version-history":[{"count":0,"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/posts\/1864\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/media?parent=1864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/categories?post=1864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.virendrachandak.com\/techtalk\/wp-json\/wp\/v2\/tags?post=1864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}