---
title: "Trailing slash"
description: "A trailing slash is the / at the end of a URL. See why the version with and without it can be treated as two different pages and how to avoid SEO issues."
url: "https://nodea.io/en/glossary/trailing-slash"
lang: "en"
updated: "2026-07-13"
---

# Trailing slash

> A trailing slash is the forward slash at the end of a URL; with it and without it a server may treat the address as two different pages.

A **trailing slash** is the forward slash character (/) placed at the end of a URL, as in *example.com/page/* versus *example.com/page*. Although the two addresses look almost identical to a human, a web server can treat them as two distinct URLs pointing to potentially different resources, which has practical consequences for consistency and search visibility.

## Why the trailing slash matters

Historically, a trailing slash signalled a directory, while its absence suggested a file. Modern applications route URLs however they choose, so the distinction is now a matter of configuration rather than a hard rule. The important point is consistency: if both versions of an address return the same content without one redirecting to the other, you effectively have two URLs for one page. That can split link signals, waste crawl budget and create duplicate-content confusion for search engines during [indexing](https://nodea.io/en/glossary/page-indexing).

## Handling trailing slashes correctly

The recommended practice is to pick one canonical form — with or without the trailing slash — and configure the server to redirect the other version to it with a permanent redirect. This ensures every visitor and crawler lands on a single, consistent URL, consolidating [SEO](https://nodea.io/en/glossary/seo) value and avoiding duplicates. Consistency also helps caching: a [cache](https://nodea.io/en/glossary/cache-and-microcaching) keyed on the exact URL will store two separate copies if both forms are used, reducing hit rates. The choice between the two styles is less important than applying it uniformly across the whole site and reflecting it in internal links and sitemaps. Because URLs ultimately resolve to servers via [DNS](https://nodea.io/en/glossary/dns), the trailing slash operates purely at the application layer, but getting it right is a small detail that keeps a site's addressing clean and its ranking signals undivided.

### Does a trailing slash matter for SEO?

It can. If the same content is reachable both with and without the slash and neither redirects to the other, search engines may see two duplicate URLs. Choosing one version and redirecting the other keeps signals consolidated.

## Related

- [SEO](https://nodea.io/en/glossary/seo)
- [Page indexing](https://nodea.io/en/glossary/page-indexing)
- [DNS](https://nodea.io/en/glossary/dns)
- [Cache and microcaching](https://nodea.io/en/glossary/cache-and-microcaching)

---

Languages: [pl](https://nodea.pl/pl/slownik-pojec/trailing-slash.md)  
Site index: [llms.txt](https://nodea.io/en/llms.txt)
