# Trailing slash in URLs

> Decide whether paths end in a slash, then align redirects, canonicals, internal links, and sitemaps to one URL per page.

Canonical: https://scaplet.com/glossary/trailing-slash

Glossary Glossary · Crawling and indexing

Decide whether paths end in a slash, then align redirects, canonicals, internal links, and sitemaps to one URL per page.

3 min

read

4

sources

Oct 24, 2026

updated

Scaplet Editorial Team

author

In one line

A trailing slash is the final `/` in a URL path, as in `/guides/`. The slash and no-slash versions can be separate URLs, even when they show the same page. Choose one convention and make the other version redirect to it; keep canonicals, internal links, and sitemaps consistent with the chosen URL.

30-second check

## Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Ftrailing-slash%20(%22Trailing%20slash%20in%20URLs%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Ftrailing-slash%20(%22Trailing%20slash%20in%20URLs%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Ftrailing-slash%20(%22Trailing%20slash%20in%20URLs%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Ftrailing-slash%20(%22Trailing%20slash%20in%20URLs%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 3 parts, 3 minutes.

1. [A slash creates a different URL 01](#a-slash-creates-a-different-url)
2. [Make every signal agree 02](#make-every-signal-agree)
3. [Changing the convention on an established site 03](#changing-the-convention-on-an-established-site)

_01_Good to know

## A slash creates a different URL

These are distinct addresses: `https://example.com/guides` and `https://example.com/guides/`. A server may return the same page for both, redirect one, or serve different content. Google says it treats slash and no-slash URLs separately (and equally), so two URLs that both return 200 with the same content are duplicates. Different content on the two is permissible to Google but often confusing for users. The one exception is your root URL: Google says `https://example.com` is equivalent to `https://example.com/` and cannot be redirected. The most direct Google statement on this is a 2010 blog post; the current [URL structure](/glossary/url-structure) and [canonicalization](/glossary/canonical-url) docs cited here do not mention trailing slashes.

Google lets you choose

Google's 2010 post says that for a site with a directory structure, a trailing slash on directory URLs is more conventional, \"but you can choose whichever you like.\" What matters is one preferred URL per page, used consistently.

_02_How it works

## Make every signal agree

Google treats redirects and canonical annotations as strong canonicalization signals, while sitemap inclusion is weaker. Use the [canonical URL guide](/glossary/canonical-url) and [redirect guide](/glossary/301-redirect) when consolidating existing variants.

1. 01

### Choose the canonical format

Decide whether page paths use a final slash. Check the framework, CMS, server, and existing URL patterns before changing a live site.
2. 02

### Redirect the alternate URL directly

When both versions currently return the same page, permanently redirect the non-preferred version to the preferred one. Test both paths and confirm the destination returns 200. Avoid a chain such as `/guide` → `/guide/` → `/guide`.
3. 03

### Update page signals

Per Google's post, use the preferred URL in [internal links](/glossary/internal-links) and include only the preferred version in the sitemap. Add a self-referencing canonical on the preferred page.
4. 04

### Check generated paths and exceptions

Test the homepage, files, nested routes, [query parameters](/glossary/url-parameters), and routes already covered by redirects. Some systems treat file paths differently from page routes; preserve intentional exceptions and prevent [redirect loops](/seo-issues/redirect-loops).

_03_Checklist

## Changing the convention on an established site

1. 01 Do not change slashes for cosmetic consistency alone. If a migration is justified, map each old URL to its matching new URL and deploy direct server-side redirects.
2. 02 Update internal links and canonical tags in the same release; otherwise crawlers and visitors may keep hitting the old form.
3. 03 Regenerate the sitemap with only preferred URLs, then crawl both slash variants to find 404s, redirect chains, and loops.
4. 04 Check Search Console after launch. Google may need time to recrawl and consolidate the changed URLs.

For a broader checklist, see [URL structure](/glossary/url-structure). Google's [URL structure guidance](https://developers.google.com/search/docs/crawling-indexing/url-structure) covers crawlable, consistent paths; its canonicalization documentation explains how redirects, canonicals, and sitemap URLs work together.

Questions

## Asked a lot.

3 questions people ask next, answered from the sources on this page.

_01_ Does Google prefer URLs with a trailing slash?

No. Google treats the slash and no-slash forms as separate URLs. Choose one site-wide convention and consistently redirect and link to it.

_02_ Should I use a canonical tag or a redirect for slash variants?

If one duplicate URL should no longer be used, Google's 2010 post recommends a 301 redirect from the duplicate to the preferred version, and calls rel=\"canonical\" a strong option if a redirect is not possible. Either way, link internally to the preferred URL and list only that version in the sitemap.

_03_ Can changing trailing slashes hurt a site migration?

It can create broken paths, chains, or loops if redirects and generated links disagree. Map old paths to their final destinations, update canonicals and sitemaps, and test both variants before release.

Sources · 4

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- google.com

1. 01 [To slash or not to slash](https://developers.google.com/search/blog/2010/04/to-slash-or-not-to-slash) developers.google.com · checked 2026-10-24
2. 02 [URL structure best practices for Google Search](https://developers.google.com/search/docs/crawling-indexing/url-structure) developers.google.com · checked 2026-10-24
3. 03 [How to specify a canonical URL with rel=canonical and other methods](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls) developers.google.com · checked 2026-10-24
4. 04 [Redirects and Google Search](https://developers.google.com/search/docs/crawling-indexing/301-redirects) developers.google.com · checked 2026-10-24

## Keep learning

[All glossary](/glossary)

[Learn 301 redirect Crawling and indexing](/glossary/301-redirect) [Related Uppercase characters in URLs On-page](/seo-issues/uppercase-urls) [Read next Canonical URL Crawling and indexing](/glossary/canonical-url) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[Total Blocking Time (TBT)](/glossary/total-blocking-time) [Toxic backlinks](/glossary/toxic-backlinks) [Trust Flow](/glossary/trust-flow) [TTL (time to live)](/glossary/ttl)

More in Crawling and indexing
[Page indexing report](/glossary/page-indexing-report) [Pagination](/glossary/pagination) [Removals tool (Search Console)](/glossary/removals-tool) [Rendered HTML](/glossary/rendered-html) [Rendering](/glossary/rendering) [Robots meta tag](/glossary/robots-meta-tag) [Server-side rendering](/glossary/server-side-rendering) [Sitemaps report](/glossary/sitemaps-report) [SPA SEO](/glossary/spa-seo) [SSL certificate](/glossary/ssl-certificate) [SSR vs CSR](/glossary/ssr-vs-csr) [Subdomain vs subdirectory](/glossary/subdomain-vs-subdirectory) [Trailing slash in URLs](/glossary/trailing-slash) [unavailable_after](/glossary/unavailable-after) [URL fragment](/glossary/url-fragment) [URL Inspection tool](/glossary/url-inspection-tool) [URL parameters](/glossary/url-parameters) [URL structure](/glossary/url-structure) [User agent](/glossary/user-agent) [Video sitemap](/glossary/video-sitemap) [Web crawler](/glossary/web-crawler) [Web scraping](/glossary/web-scraping) [www vs non-www](/glossary/www-vs-non-www) [X-Frame-Options](/glossary/x-frame-options)

Terms on this page
[URL structure](/glossary/url-structure) [Canonical URL](/glossary/canonical-url) [Internal links](/glossary/internal-links) [URL parameters](/glossary/url-parameters) [301 redirect](/glossary/301-redirect)

Free · 2 minutes

## Know the term. _Now check your site._

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
