{"id":6371,"date":"2023-07-14T09:43:00","date_gmt":"2023-07-14T09:43:00","guid":{"rendered":"https:\/\/www.smarthost.au\/blog\/?p=6371"},"modified":"2024-06-18T11:15:08","modified_gmt":"2024-06-18T11:15:08","slug":"enabling-ssl-certificate-in-magento","status":"publish","type":"post","link":"https:\/\/www.smarthost.au\/blog\/enabling-ssl-certificate-in-magento","title":{"rendered":"Enabling SSL certificate in Magento"},"content":{"rendered":"\n<p>In order to enable the SSL certificate and enable access to the website via https (green padlock), you must perform the following operational steps: Log in to the &#8216;back-end&#8217; of our webesite (www.clients-domain.smarthost.eu\/admin, where clients-domain.smarthost.eu is supposed to be replaced with your common domain and &#8216;admin&#8217; is supposed to be replaced with the given panel login path).<\/p>\n\n\n\n<p>1. Go to the &#8220;Stores&#8221; tab in the navigation bar<\/p>\n\n\n\n<p>2. Click &#8220;Configuration&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"980\" height=\"516\" src=\"https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2024\/06\/zdj1-3.png\" alt=\"\" class=\"wp-image-6390\" srcset=\"https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2024\/06\/zdj1-3.png 980w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2024\/06\/zdj1-3-300x158.png 300w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2024\/06\/zdj1-3-768x404.png 768w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2024\/06\/zdj1-3-520x274.png 520w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2024\/06\/zdj1-3-740x390.png 740w\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" \/><\/figure>\n\n\n\n<p><br>3. Go to the &#8220;Web&#8221; tab<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"628\" src=\"https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2024\/06\/2-2-1024x628-1.png\" alt=\"\" class=\"wp-image-6391\" srcset=\"https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2024\/06\/2-2-1024x628-1.png 1024w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2024\/06\/2-2-1024x628-1-300x184.png 300w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2024\/06\/2-2-1024x628-1-768x471.png 768w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2024\/06\/2-2-1024x628-1-520x319.png 520w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2024\/06\/2-2-1024x628-1-740x454.png 740w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>4. Check whether in the &#8220;Secure base URL&#8221; field your domain contains the https protocol<\/p>\n\n\n\n<p>5. In the fields: &#8220;Use Secure URLs on Storefront&#8221; and &#8220;Use Secure URLs in Admin&#8221;, select &#8220;YES&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"628\" src=\"https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2024\/06\/2-1-1024x628-1.png\" alt=\"\" class=\"wp-image-6392\" srcset=\"https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2024\/06\/2-1-1024x628-1.png 1024w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2024\/06\/2-1-1024x628-1-300x184.png 300w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2024\/06\/2-1-1024x628-1-768x471.png 768w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2024\/06\/2-1-1024x628-1-520x319.png 520w, https:\/\/www.smarthost.au\/blog\/wp-content\/uploads\/2024\/06\/2-1-1024x628-1-740x454.png 740w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>There is also an alternative method but it is not recommended due to compliactions that may arise after modifying the .htaccess file.<\/p>\n\n\n\n<p>This method can be used by advanced users at their own risk. If there are RewriteCond and RewriteRule rules in the .htaccess file, try adding the rule:<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<pre class=\"wp-block-code\"><code>RewriteCond %{REQUEST_URI} !^\/\\.well-known\/acme-challenge\/&#91;0-9a-zA-Z_-]+$<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<p>The rule above is responsible for redirecting to https or to the index.php file. An example configuration of the .htaccess file with addtional rules already inserted may look like this:<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\">\n<pre class=\"wp-block-code\"><code> \nRewriteCond %{HTTPS} !=on\nRewriteCond %{REQUEST_URI} !^\/\\.well-known\/acme-challenge\/&#91;0-9a-zA-Z_-]+$ \nRewriteRule ^.*$ https:\/\/%{SERVER_NAME}%{REQUEST_URI} &#91;R,L]<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<p><strong>We would like to remind You that at Smarthost.eu, each hosting account automatically receives free SSL certifictes for all the domains.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In order to enable the SSL certificate and enable access to the website via https (green padlock), you must perform the following operational steps: Log in to the &#8216;back-end&#8217; of our webesite (www.clients-domain.smarthost.eu\/admin, where clients-domain.smarthost.eu<a class=\"read-more\" href=\"https:\/\/www.smarthost.au\/blog\/enabling-ssl-certificate-in-magento\">Continue reading<\/a><\/p>\n","protected":false},"author":20,"featured_media":6373,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[437,1021,926,8,42],"tags":[408,36,1055,75,118,1134],"class_list":["post-6371","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel-pl","category-guides","category-https-uk","category-security","category-ssl-certificates","tag-bezpieczenstwo","tag-https","tag-open-cart","tag-security","tag-ssl","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/6371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/comments?post=6371"}],"version-history":[{"count":2,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/6371\/revisions"}],"predecessor-version":[{"id":6393,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/posts\/6371\/revisions\/6393"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/media\/6373"}],"wp:attachment":[{"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/media?parent=6371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/categories?post=6371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.smarthost.au\/blog\/wp-json\/wp\/v2\/tags?post=6371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}