{"id":18272,"date":"2026-09-26T09:26:34","date_gmt":"2026-09-26T06:26:34","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/enable-https-on-your-website\/"},"modified":"2026-09-26T09:26:34","modified_gmt":"2026-09-26T06:26:34","password":"","slug":"enable-https-on-your-website","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/enable-https-on-your-website\/","title":{"rendered":"How to Enable HTTPS on Your Website"},"content":{"rendered":"<div class=\"hy-tldr\" style=\"background:#f6f7fb;border-left:4px solid #d83954;border-radius:10px;padding:14px 18px;margin:0 0 20px;line-height:1.8\"><strong>In short:<\/strong> To enable HTTPS: first make sure your domain has an <strong>SSL certificate<\/strong>, then switch your site to use <strong>https:\/\/<\/strong> and redirect all HTTP traffic to HTTPS, either with a plugin (for WordPress) or by adding three lines to your <strong>.htaccess<\/strong> file.<\/div>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-9421\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2018\/09\/https-ev-ssl.png\" alt=\"\" width=\"231\" height=\"235\" title=\"\"><\/p>\n<p>HTTPS encrypts the connection between your website and its visitors. Browsers mark sites without it as &#8220;Not secure&#8221;, and search engines prefer secure sites. Learn more: <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/what-is-an-ssl-certificate\/\">what is an SSL certificate and how does it work?<\/a><\/p>\n<h2>Step 1: Get an SSL certificate<\/h2>\n<p>HTTPS needs an SSL (Secure Sockets Layer) certificate on your domain. Ask your hosting provider to issue one; some providers include it for free and others charge yearly. If your site at Hyyat Host does not have a certificate yet, open a support ticket from the <a href=\"https:\/\/www.hyyatdomain.com\/clientarea.php\" target=\"_blank\" rel=\"noopener\">client area<\/a>.<\/p>\n<h2>Step 2: Switch your site to HTTPS<\/h2>\n<p>Once the certificate is active, update your site so it loads over HTTPS instead of HTTP. Your developer can do this, or use one of the methods below.<\/p>\n<h3>Using a plugin (WordPress)<\/h3>\n<p>Install a plugin such as <strong>Really Simple SSL<\/strong> or <strong>Easy HTTPS (SSL) Redirection<\/strong> from the WordPress plugin directory. It switches your links from HTTP to HTTPS quickly. Also check <strong>Settings \u2192 General<\/strong> in WordPress that both site addresses start with <strong>https:\/\/<\/strong>.<\/p>\n<h3>Using the .htaccess file<\/h3>\n<p>In your site&#8217;s main folder (<strong>public_html<\/strong> in cPanel), create a file named <strong>.htaccess<\/strong> if it does not exist, and add this at the top:<\/p>\n<pre><code>RewriteEngine On\nRewriteCond %{HTTPS} !=on\nRewriteRule ^ https:\/\/%{HTTP_HOST}%{REQUEST_URI} [L,R=301]<\/code><\/pre>\n<p>This permanently redirects every HTTP request to HTTPS.<\/p>\n<p>Related service: <a href=\"https:\/\/www.hyyat.com\/en\/wordpress-hosting\/\">WordPress hosting plans<\/a> from Hyyat Host, with 24\/7 support.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In short: To enable HTTPS: first make sure your domain has an SSL certificate, then switch your site to use https:\/\/ and redirect all HTTP traffic to HTTPS, either with a plugin (for WordPress) or by adding three lines to your .htaccess file. HTTPS encrypts the connection between your website and its visitors. Browsers mark [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","inline_featured_image":false,"wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"doc_category":[2747],"doc_tag":[],"class_list":["post-18272","docs","type-docs","status-publish","hentry","doc_category-wordpress-explanations"],"year_month":"2026-09","word_count":267,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"ahmed fathy","author_nicename":"ahmed-fathy","author_url":"https:\/\/www.hyyat.com\/en\/author\/ahmed-fathy\/"},"doc_category_info":[{"term_name":"WordPress explanations","term_url":"https:\/\/www.hyyat.com\/en\/kb\/wordpress-explanations\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=18272"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18272\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=18272"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=18272"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=18272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}