---
title: How to Enable HTTPS on Your Website
description: "**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…"
url: "https://www.hyyat.com/en/knowledgebase/enable-https-on-your-website/"
updated: "2026-10-21"
category: WordPress explanations
---

# How to Enable HTTPS on Your Website

**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.

![How to Enable HTTPS on Your Website - screenshot 1](https://www.hyyat.com/wp-content/uploads/2018/09/https-ev-ssl.png)

HTTPS encrypts the connection between your website and its visitors. Browsers mark sites without it as "Not secure", and search engines prefer secure sites. Learn more: [what is an SSL certificate and how does it work?](https://www.hyyat.com/en/knowledgebase/what-is-an-ssl-certificate/)

## Step 1: Get an SSL certificate

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 [client area](https://www.hyyatdomain.com/clientarea.php).

## Step 2: Switch your site to HTTPS

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.

### Using a plugin (WordPress)

Install a plugin such as **Really Simple SSL** or **Easy HTTPS (SSL) Redirection** from the WordPress plugin directory. It switches your links from HTTP to HTTPS quickly. Also check **Settings → General** in WordPress that both site addresses start with **https://**.

### Using the .htaccess file

In your site's main folder (**public_html** in cPanel), create a file named **.htaccess** if it does not exist, and add this at the top:

```
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
```

This permanently redirects every HTTP request to HTTPS.

Related service: [WordPress hosting plans](https://www.hyyat.com/en/wordpress-hosting/) from Hyyat Host, with support that replies within 24 hours.

 **Related guides**

- [Disabling WordPress Plugins from cPanel](https://www.hyyat.com/knowledgebase/%d8%aa%d8%b9%d8%b7%d9%8a%d9%84-%d8%a7%d8%b6%d8%a7%d9%81%d8%a7%d8%aa-%d9%88%d9%88%d8%b1%d8%af%d8%a8%d8%b1%d9%8a%d8%b3-%d9%85%d9%86-%d8%a7%d9%84%d8%b3%d9%8a-%d8%a8%d9%86%d9%84/)
- [How to Fix the 500 Internal Server Error (WordPress and Any Site)](https://www.hyyat.com/knowledgebase/%d8%ad%d9%84-%d9%85%d8%b4%d9%83%d9%84%d8%a9-%d8%ae%d8%b7%d8%a3-internal-server-error-500-%d9%81%d9%89-%d9%88%d9%88%d8%b1%d8%af-%d8%a8%d8%b1%d9%8a%d8%b3/)
- [How to Add Categories and Subcategories in WordPress](https://www.hyyat.com/knowledgebase/%d8%b4%d8%b1%d8%ad-%d8%a7%d8%b6%d8%a7%d9%81%d9%87-%d8%aa%d8%b5%d9%86%d9%8a%d9%81-%d9%81%d9%8a-%d9%88%d9%88%d8%b1%d8%af%d8%a8%d8%b1%d9%8a%d8%b3/)

  **Need this service from Hyyat Host?**Our team handles it for you, with support replying to tickets within 24 hours at most.[WordPress Hosting](https://www.hyyat.com/en/wordpress-hosting/)[WordPress design](https://www.hyyat.com/en/wordpress/)
