{"id":25050,"date":"2022-02-02T15:03:05","date_gmt":"2022-02-02T15:03:05","guid":{"rendered":"https:\/\/1-grid.com\/knowledge\/how-to-setup-ssl-on-your-website\/"},"modified":"2025-05-27T10:41:18","modified_gmt":"2025-05-27T10:41:18","slug":"how-to-setup-ssl-on-your-website","status":"publish","type":"ht_kb","link":"https:\/\/1grid.co.za\/knowledge\/how-to-setup-ssl-on-your-website\/","title":{"rendered":"How to Setup SSL on your website"},"content":{"rendered":"<blockquote><p><span style=\"color: #000000;\">This article provides you with information on how to <a href=\"https:\/\/1-grid.com\/comodo-ssl-certificates\/\">secure your Domain with SSL<\/a>.<\/span><\/p><\/blockquote>\n<p><span style=\"color: #000000;\">If you are collecting ANY sensitive information on your website (including email and password), then you need to be secure. One of the best ways to do that is to enable HTTPS, also known as SSL (secure socket layers) so that any information going to and from your server is automatically encrypted. This prevents hackers from sniffing out your visitors\u2019 sensitive information as it passes through the internet.<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">Your visitors will feel safer on your site when they see the lock while accessing your website \u2013 knowing it\u2019s protected by a security certificate.<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>Overview<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">The best thing about SSL is it\u2019s simple to set up, and once it\u2019s done all you have to do is route people to use HTTPS instead of HTTP. If you try to access your site by putting https:\/\/ in front of your URLs right now, you\u2019ll get an error. That\u2019s because you haven\u2019t installed an SSL Certificate.\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">Setting up HTTPS on your website is very easy, just follow these 5 simple steps:<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">&#8211; Host with a dedicated IP address<\/span><\/p>\n<p><span style=\"color: #000000;\">&#8211; Buy a certificate<\/span><\/p>\n<p><span style=\"color: #000000;\">&#8211; Activate the certificate<\/span><\/p>\n<p><span style=\"color: #000000;\">&#8211; Install the certificate<\/span><\/p>\n<p><span style=\"color: #000000;\">&#8211; Update your site to use HTTPS<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>Step 1: Host with a dedicated IP address<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">In order to provide the best security, SSL certificates require your website to have its own dedicated IP address. With a dedicated IP, you ensure that the traffic going to that IP address is only going to your website and no one else\u2019s.<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<h2><span style=\"color: #000000;\"><strong>Step 2: Buy a Certificate<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">Next, you\u2019ll need something that proves your website is your website \u2013 kind of like an ID Card for your site. This is accomplished by creating an SSL certificate. A certificate is simply a paragraph of letters and numbers that only your site knows, like a really long password. When people visit your site via HTTPS that password is checked, and if it matches, it automatically verifies that your website is who you say it is \u2013 and it encrypts everything flowing to and from it.<\/span><\/p>\n<p><span style=\"color: #000000;\">Technically this is something you can create yourself (called a \u2018self-signed cert\u2019), but all popular browsers check with \u201cCertificate Authorities\u201d (CA\u2019s) which also have a copy of that long password and can vouch for you. Please see <a href=\"https:\/\/1-grid.com\/knowledge\/customer-zone-how-do-i-order-a-new-ssl\/\" target=\"_blank\" rel=\"noreferrer noopener\">here\u00a0<\/a>how to purchase a certificate with 1-grid.<\/span><\/p>\n<h2><span style=\"color: #000000;\">\u00a0<\/span><\/h2>\n<h2><span style=\"color: #000000;\"><strong>Step 3: Activate the certificate<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">If you\u2019re activating the certificate yourself, the next step is to generate a CSR. It\u2019s easiest to do this within your web hosting control panel \u2013 such as WHM or cPanel. Go to the SSL\/TLS admin area and choose \u201cGenerate an SSL certificate and Signing Request\u201d. Fill out the fields in the screen below:<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">\u201cHost to make cert for\u201d is your domain name, and the contact email can be blank.\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">Copy the first block of text. You\u2019ll need this \u201cCSR\u201d to give to the SSL cert issuer so they can establish your identity. Login to your account (or wherever you bought your certificate) and activate it. Paste your CSR and any other fields needed. It will ask you for an approver email. This is an email address that proves you own the domain, ie ssl@1-grid.com. If it doesn\u2019t exist, you\u2019ll need to create it so you can get the email that contains the final certificate. Follow the steps and when you are done that email address should have received the cert as a .crt file.<\/span><\/p>\n<h2><span style=\"color: #000000;\">\u00a0<\/span><\/h2>\n<h2><span style=\"color: #000000;\"><strong>Step 4: Install the certificate<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">If you\u2019re installing up the certificate yourself, this is the easiest step you\u2019ll ever do. You have the certificate in hand, all you need to do is paste it into your web host control panel. Please see the article <a href=\"https:\/\/1-grid.com\/knowledge\/cpanel-how-to-install-a-ssl-certificate\/\" target=\"_blank\" rel=\"noreferrer noopener\">here\u00a0<\/a>on how to install your SSL.<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">Paste it into the first box and hit submit. That\u2019s it! Now try to access your site via <a href=\"https:\/\/www.domain.com\" rel=\"noreferrer\">https:\/\/www.domain.com<\/a> \u2013 you should be secure!<\/span><\/p>\n<h2><span style=\"color: #000000;\">\u00a0<\/span><\/h2>\n<h2><span style=\"color: #000000;\"><strong>Step 5: Update your site links to HTTPS<\/strong><\/span><\/h2>\n<p><span style=\"color: #000000;\">At this point, if you go to <a href=\"https:\/\/yoursite.com\" rel=\"noreferrer\">https:\/\/yoursite.com<\/a> you should see it load! Congrats, you\u2019ve successfully installed SSL and enabled the HTTPS protocol! But your visitors aren\u2019t protected just yet, you need to make sure they\u2019re accessing your site through HTTPS!<\/span><\/p>\n<p><span style=\"color: #000000;\">Keep in mind that you typically only need to protect a few pages, such as your login or cart checkout. If you enable HTTPS on pages where the user isn\u2019t submitting sensitive data on there, it\u2019s just wasting encryption processing and slowing down the experience. Identify the target pages and perform one of the two methods below.<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">You can update all links to the target pages to use the HTTPS links. In other words, if there\u2019s a link to your cart on your home page, update that link to use the secure link. Do this for all links on all pages pointing to the sensitive URLs.<\/span><\/p>\n<p><span style=\"color: #000000;\">However, if you want to ensure that people can only use specific pages securely no matter what links they come from, it\u2019s best to use a server-side approach to redirect the user if it\u2019s not HTTPS. You can do that with a code snippet inserted on top of your secure page. Here\u2019s one in PHP:<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<blockquote>\n<pre><span style=\"color: #000000;\">\/\/ Require https if ($_SERVER['HTTPS'] != \"on\") {    $url = \"https:\/\/\". $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];    header(\"Location: $url\");    exit; }<\/span><\/pre>\n<\/blockquote>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">Another server-side approach is to use mod-rewrite. This won\u2019t require you to change any of your website files but will need you to modify your apache configuration. Here\u2019s a nice <a href=\"http:\/\/mod-rewrite-cheatsheet.com\/\">mod-rewrite cheat sheet<\/a>, or just use this example:<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<blockquote>\n<pre><span style=\"color: #000000;\">RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(cart\/|checkout\/) https:\/\/%{HTTP_HOST}%{REQUEST_URI}<\/span><\/pre>\n<\/blockquote>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">This will ensure that if anyone accesses a page via HTTP they will automatically be redirected to HTTPS.<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\">\u00a0<\/span><\/p>\n<p><span style=\"color: #000000;\"><span class=\"fr-video fr-fvc fr-dvb fr-draggable\"><iframe loading=\"lazy\" class=\"fr-draggable\" src=\"https:\/\/www.youtube.com\/embed\/1-mwEqVXG3g\" width=\"560\" height=\"315\" frameborder=\"0\" sandbox=\"allow-scripts allow-forms allow-same-origin allow-presentation\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article provides you with information on how to secure your Domain with SSL. If you are collecting ANY sensitive information on your website (including email and password), then you need to be secure. One of the best ways to do that is to enable HTTPS, also known as SSL&#8230;<\/p>\n","protected":false},"author":21,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"ht-kb-category":[21],"ht-kb-tag":[480,691,908,950,951,1112,1161],"class_list":["post-25050","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-ssl-certificates","ht_kb_tag-how-to","ht_kb_tag-on","ht_kb_tag-setup","ht_kb_tag-ssl","ht_kb_tag-ssl-certificates-and-website-security","ht_kb_tag-website","ht_kb_tag-your"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Setup SSL on your website - 1-grid Knowledge Base<\/title>\n<meta name=\"description\" content=\"This article provides you with information on how to secure your Domain with SSL. 1-grid Knowledge Base How to Setup SSL on your website\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/1grid.co.za\/knowledge\/how-to-setup-ssl-on-your-website\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Setup SSL on your website - 1-grid Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"This article provides you with information on how to secure your Domain with SSL. 1-grid Knowledge Base How to Setup SSL on your website\" \/>\n<meta property=\"og:url\" content=\"https:\/\/1grid.co.za\/knowledge\/how-to-setup-ssl-on-your-website\/\" \/>\n<meta property=\"og:site_name\" content=\"1-grid Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/1grid.co.za\/\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-27T10:41:18+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@1grid_hosting\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/how-to-setup-ssl-on-your-website\/\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/how-to-setup-ssl-on-your-website\/\",\"name\":\"How to Setup SSL on your website - 1-grid Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#website\"},\"datePublished\":\"2022-02-02T15:03:05+00:00\",\"dateModified\":\"2025-05-27T10:41:18+00:00\",\"description\":\"This article provides you with information on how to secure your Domain with SSL. 1-grid Knowledge Base How to Setup SSL on your website\",\"breadcrumb\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/how-to-setup-ssl-on-your-website\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/1grid.co.za\/knowledge\/how-to-setup-ssl-on-your-website\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/how-to-setup-ssl-on-your-website\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/1grid.co.za\/knowledge\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Setup SSL on your website\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#website\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/\",\"name\":\"1-Grid Domain Hosting Knowledge Base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/1grid.co.za\/knowledge\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#organization\",\"name\":\"1-Grid Domain Hosting Knowledge Base\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg\",\"contentUrl\":\"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg\",\"width\":100,\"height\":100,\"caption\":\"1-Grid Domain Hosting Knowledge Base\"},\"image\":{\"@id\":\"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/1grid.co.za\/\",\"https:\/\/twitter.com\/1grid_hosting\",\"https:\/\/www.instagram.com\/1grid_hosting\/\",\"https:\/\/za.linkedin.com\/company\/1-grid\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Setup SSL on your website - 1-grid Knowledge Base","description":"This article provides you with information on how to secure your Domain with SSL. 1-grid Knowledge Base How to Setup SSL on your website","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:\/\/1grid.co.za\/knowledge\/how-to-setup-ssl-on-your-website\/","og_locale":"en_US","og_type":"article","og_title":"How to Setup SSL on your website - 1-grid Knowledge Base","og_description":"This article provides you with information on how to secure your Domain with SSL. 1-grid Knowledge Base How to Setup SSL on your website","og_url":"https:\/\/1grid.co.za\/knowledge\/how-to-setup-ssl-on-your-website\/","og_site_name":"1-grid Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/1grid.co.za\/","article_modified_time":"2025-05-27T10:41:18+00:00","twitter_card":"summary_large_image","twitter_site":"@1grid_hosting","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/1grid.co.za\/knowledge\/how-to-setup-ssl-on-your-website\/","url":"https:\/\/1grid.co.za\/knowledge\/how-to-setup-ssl-on-your-website\/","name":"How to Setup SSL on your website - 1-grid Knowledge Base","isPartOf":{"@id":"https:\/\/1grid.co.za\/knowledge\/#website"},"datePublished":"2022-02-02T15:03:05+00:00","dateModified":"2025-05-27T10:41:18+00:00","description":"This article provides you with information on how to secure your Domain with SSL. 1-grid Knowledge Base How to Setup SSL on your website","breadcrumb":{"@id":"https:\/\/1grid.co.za\/knowledge\/how-to-setup-ssl-on-your-website\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/1grid.co.za\/knowledge\/how-to-setup-ssl-on-your-website\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/1grid.co.za\/knowledge\/how-to-setup-ssl-on-your-website\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/1grid.co.za\/knowledge\/"},{"@type":"ListItem","position":2,"name":"How to Setup SSL on your website"}]},{"@type":"WebSite","@id":"https:\/\/1grid.co.za\/knowledge\/#website","url":"https:\/\/1grid.co.za\/knowledge\/","name":"1-Grid Domain Hosting Knowledge Base","description":"","publisher":{"@id":"https:\/\/1grid.co.za\/knowledge\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/1grid.co.za\/knowledge\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/1grid.co.za\/knowledge\/#organization","name":"1-Grid Domain Hosting Knowledge Base","url":"https:\/\/1grid.co.za\/knowledge\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/","url":"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg","contentUrl":"https:\/\/1grid.co.za\/knowledge\/wp-content\/uploads\/2023\/01\/1-grid-logo-color.svg","width":100,"height":100,"caption":"1-Grid Domain Hosting Knowledge Base"},"image":{"@id":"https:\/\/1grid.co.za\/knowledge\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/1grid.co.za\/","https:\/\/twitter.com\/1grid_hosting","https:\/\/www.instagram.com\/1grid_hosting\/","https:\/\/za.linkedin.com\/company\/1-grid"]}]}},"_links":{"self":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/25050","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/comments?post=25050"}],"version-history":[{"count":5,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/25050\/revisions"}],"predecessor-version":[{"id":32454,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb\/25050\/revisions\/32454"}],"wp:attachment":[{"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/media?parent=25050"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb-category?post=25050"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/1grid.co.za\/knowledge\/wp-json\/wp\/v2\/ht-kb-tag?post=25050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}