BF50 Black Friday · 50% off all plans
from $5/mo · Auto-applied ---:--:-- Claim 50% off →
Skip to content

Search Seonio

Type a keyword, domain, or paste a URL

Start free with $1 to see full results. Powered by Seonio
SEO

Trailing slash: Does it matter for SEO?

To Google, /page and /page/ are two different URLs, except at the root. Pick one form, redirect the other to it and link to it consistently.

Monthly searches · trailing slashes
2.4k
Keyword research data
trailing slashes
Trailing slash: Does it matter for SEO?
Click the image to view it full size

A trailing slash is the / at the very end of a URL, after the last path segment: example.com/shoes/ has one, example.com/shoes doesn't. People read both as the same page. Web servers and search engines don't, which is why the question comes up whenever a site moves to a new platform or framework.

Why the slash exists at all

On early web servers, URLs mapped straight to folders and files. A slash at the end meant a folder (the server then served that folder's index file, such as index.html), and no slash meant a file. Many servers still behave this way: Apache, for example, redirects a request for a folder without the slash to the address with it, a setting that's on by default.

Most sites today build pages from a database or a framework, so the slash no longer says anything about folders. It's a naming choice, and frameworks pick their own defaults. Next.js, for instance, redirects /about/ to /about unless you configure the opposite.

Is /page different from /page/?

Yes. Google treats each one as a separate URL, with or without the slash, and says so plainly (Google Search Central). The two may even show different content, though that would confuse visitors.

The one exception is the bare domain. https://example.com and https://example.com/ are the same address: the URL standard defines an empty path as /. You can't redirect one to the other, and you don't need to. This only applies to the root URL, not to folders under it.

When the slash causes trouble

If both versions return the same page with a 200 status, you have duplicate content. That's not a penalty. Google says some duplication is normal, and it usually clusters the two URLs and picks one to show. The real costs are smaller and practical:

  • Google may pick the version you didn't want as the canonical, so the URL in results differs from the one in your campaigns and reports.
  • Your numbers split. Analytics and Search Console can list the same page twice, which makes performance harder to read.
  • Crawlers fetch two URLs for one page. Google names crawl efficiency as a reason to consolidate; it matters mostly on large sites.
  • Relative links break. A browser resolves a relative link against the path up to its last slash. On /blog/post, a link to image.png points to /blog/image.png; on /blog/post/, it points to /blog/post/image.png. If one version loads with missing images or broken links, this is often why.

How to check your site

Open a page in both forms, with and without the slash, and look at what happens:

What you see What it means What to do
One version redirects to the other Already consistent Nothing, just keep internal links on the final URL
Both load the same page, one has a canonical tag pointing to the other Handled, slightly weaker than a redirect Fine; a redirect is cleaner if your setup allows it
Both load the same page, no redirect or canonical Duplicate URLs Pick one form and fix it as below
One version returns a 404 Only one URL exists Fine for Google; a redirect is friendlier if people link to the other form

For a site you own, inspect an indexed URL in the URL Inspection tool of Google Search Console: the "Google-selected canonical" field shows which version Google chose.

How to pick one and stick to it

There's no SEO winner. Google calls the slash conventional for folder-style URLs, but either form works. What matters is choosing one and using it everywhere:

  1. Pick a form for the whole site, ideally whatever your platform already produces.
  2. Redirect the other form to it with a permanent (301) redirect. Google treats a redirect as a strong signal of the preferred URL.
  3. If you can't redirect, add a canonical tag on both versions that points to the preferred one.
  4. Link to the preferred form in menus, internal links and your sitemap, and leave the other form out of the sitemap.
  5. Recheck after changes to your server, CDN or framework, because a new default can quietly flip the rule.

If your site has served both forms for years with no redirect, Google says that's legitimate and it often sorts it out. Fixing it is still worth an afternoon: you get one URL per page in your reports and fewer surprises in the results.

Seonio

Put it to work on your own site

Keyword research, traffic, backlinks and clustering in one place. Start with a free $1 to test, no card required.