URL: /rules/security/https

---
title: "HTTPS"
description: "Checks for HTTPS usage"
---

Checks for HTTPS usage

| | |
|---|---|
| **Rule ID** | `security/https` |
| **Category** | [Security](/rules/security) |
| **Scope** | Per-page |
| **Severity** | error |
| **Weight** | 8/10 |

## Solution

HTTPS encrypts data between users and your server, protecting sensitive information. It's a ranking signal and required for many modern browser features. Migrate to HTTPS by obtaining an SSL certificate (free from Let's Encrypt). Update internal links to use https://. Set up 301 redirects from HTTP to HTTPS. Update your canonical URLs and sitemap. Check for mixed content warnings after migration.

## Enable / Disable

### Disable this rule

```toml squirrel.toml
[rules]
disable = ["security/https"]
```

### Disable all Security rules

```toml squirrel.toml
[rules]
disable = ["security/*"]
```

### Enable only this rule

```toml squirrel.toml
[rules]
enable = ["security/https"]
disable = ["*"]
```
