URL: /rules/url/length

---
title: "URL Length"
description: "Checks URL length for optimal SEO"
---

Checks URL length for optimal SEO

| | |
|---|---|
| **Rule ID** | `url/length` |
| **Category** | [URL Structure](/rules/url) |
| **Scope** | Per-page |
| **Severity** | info |
| **Weight** | 3/10 |

## Solution

Shorter URLs are easier to read, share, and may rank better. Keep URLs under 75 characters when possible. URLs over 100 characters can be truncated in search results and social shares. Remove unnecessary parameters, stop words, and path segments. Use descriptive but concise slugs. Long URLs often indicate poor site architecture.

## Enable / Disable

### Disable this rule

```toml squirrel.toml
[rules]
disable = ["url/length"]
```

### Disable all URL Structure rules

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

### Enable only this rule

```toml squirrel.toml
[rules]
enable = ["url/length"]
disable = ["*"]
```
