{"id":237,"date":"2021-05-14T07:54:52","date_gmt":"2021-05-14T07:54:52","guid":{"rendered":"https:\/\/yegara.com\/en\/guide\/?p=237"},"modified":"2025-06-29T10:51:04","modified_gmt":"2025-06-29T10:51:04","slug":"how-to-fix-the-not-secure-warning","status":"publish","type":"post","link":"https:\/\/yegara.com\/en\/guide\/how-to-fix-the-not-secure-warning\/","title":{"rendered":"How To Issue SSL certificate and Fix The &#8220;Not Secure&#8221;  Warning"},"content":{"rendered":"\n<p>An SSL certificate is used to establish an encrypted connection between a server and a client, like a web server and a browser, <strong>ensuring secure communication.<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h2 class=\"wp-block-heading\">SSL certificates protect sensitive information from being intercepted by hackers or malicious actors.<\/h2>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">1\/ Install SSL Certificate <\/h2>\n\n\n\n<p>Your cPanel account at Yegara Host comes with a free SSL. The certificates are automatically installed for you within an hour or two. But some people immediately need an SSL certificate before the auto-installer runs, you can follow the steps below to install it immediately<\/p>\n\n\n\n<p>a. In your cPanel go to\u00a0<strong>SSL\/TLS<\/strong>\u00a0Status under\u00a0<strong>Security<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"240\" height=\"66\" src=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/05\/image-15.png\" alt=\"\" class=\"wp-image-664\"\/><\/figure>\n\n\n\n<p>b. Click on <strong>RUN AutoSSL<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"331\" src=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/05\/image-1-1024x331.png\" alt=\"\" class=\"wp-image-241\" srcset=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/05\/image-1-1024x331.png 1024w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/05\/image-1-300x97.png 300w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/05\/image-1-768x248.png 768w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/05\/image-1.png 1146w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>This may take a few minutes to run, at the end you will have an SSL certificate for your domain. <\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">2\/ Force your site To use HTTPS<\/h2>\n\n\n\n<p>Now that you have a valid SSL issued for your domain,  you will have to force your site to use HTTPS. Most CMS including WordPress has a built-in way to handle that.  <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Option 1: WordPress<\/h3>\n\n\n\n<p>a. Login to your WordPress <strong>Dashboard<\/strong> <\/p>\n\n\n\n<p>b. go to\u00a0<strong>Settings \u00bb General<\/strong>\u00a0page. <\/p>\n\n\n\n<p>c. update your WordPress and site URL address  by replacing <strong>http<\/strong> with <strong>https.<\/strong><\/p>\n\n\n\n<p>d. Then click on &#8220;<strong>Save Changes<\/strong>&#8220;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"686\" height=\"348\" src=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/05\/image-2.png\" alt=\"\" class=\"wp-image-244\" srcset=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/05\/image-2.png 686w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/05\/image-2-300x152.png 300w\" sizes=\"auto, (max-width: 686px) 100vw, 686px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Option 2: Force SSL In Your .htaccess File<\/h3>\n\n\n\n<p>As a general rule of thumb,&nbsp;<strong>your .htaccess file<\/strong>&nbsp;should be the main place to set redirects.   Add the below code to your .htaccess file and your site should start to use HTTPS<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;IfModule mod_rewrite.c&gt;\nRewriteEngine On\nRewriteCond %{HTTPS} off\nRewriteRule ^(.*)$ https:\/\/%{HTTP_HOST}%{REQUEST_URI} &#91;L,R=301]\n&lt;\/IfModule&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Option 3: cPanel Built-in Force HTTPS <\/h3>\n\n\n\n<p>cPanel has recently added a feature that will allow you to do that easier. By using this option the redirection is built into the domain\u2019s vhost configuration.<\/p>\n\n\n\n<p>a. In your cPanel open \u00a0<strong>Domains <\/strong> menu<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"208\" height=\"57\" src=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/05\/image-16.png\" alt=\"\" class=\"wp-image-666\"\/><\/figure>\n\n\n\n<p>b- click the slider switch under the <strong>Force HTTPS Redirect<\/strong> column next to the domain you want to enable.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"246\" src=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/05\/image-4-1024x246.png\" alt=\"\" class=\"wp-image-246\" srcset=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/05\/image-4-1024x246.png 1024w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/05\/image-4-300x72.png 300w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/05\/image-4-768x185.png 768w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/05\/image-4-1536x369.png 1536w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/05\/image-4-1200x288.png 1200w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2021\/05\/image-4.png 1847w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>That is it, Now your site should be using HTTPS . <\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">You are Done!<\/h2>\n\n\n\n<p>If you are not able to issue SSL Certificates , make sure that your domain name is pointing to the cPanel.  <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you are using cloudflare , the SSL Certificate will be automatically issues for you by cloudflare . cPanel will not issue additional certificate. <\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>An SSL certificate is used to establish an encrypted connection between a server and a client, like a web server and a browser, ensuring secure communication. SSL certificates protect sensitive information from being intercepted by hackers or malicious actors. 1\/ Install SSL Certificate Your cPanel account at Yegara Host comes with a free SSL. The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,3,2],"tags":[],"class_list":["post-237","post","type-post","status-publish","format-standard","hentry","category-cpanel","category-how-to","category-security"],"_links":{"self":[{"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/posts\/237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/comments?post=237"}],"version-history":[{"count":12,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/posts\/237\/revisions"}],"predecessor-version":[{"id":669,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/posts\/237\/revisions\/669"}],"wp:attachment":[{"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/media?parent=237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/categories?post=237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/tags?post=237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}