Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Trailing slash and non-trailing slash both load: how to fix it

SEO-055Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

A trailing slash is the / at the end of a URL. Technically https://example.com/pricing and https://example.com/pricing/ are different addresses. Many servers answer both with the same page and a 200 (OK) status, instead of sending one to the other.

Search engines usually work out which one you prefer, so this is rarely a disaster. But you are leaving the choice to them, and every link, share and ad click may point at either version.

One page, two URLs
  1. Visitor or linkUses /pricing or /pricing/
  2. ServerReturns 200 for both, no redirect
  3. Search indexTwo URLs compete for one page
  4. ReportsTraffic and links split across two paths

Both versions return 200, so signals are split between them.

Why it costs you leads or sales

The direct cost is small, which is why this is rated low impact. The indirect costs add up on busy sites:

Where duplicates hurt
  • Backlinks and shares are split between two URLs instead of building one.
  • Google may pick the version you did not intend as the canonical (the main URL it keeps in results).
  • Analytics and ad reports list the same page twice, making landing page results harder to read.
  • Crawl time is spent on duplicates, which matters most on large sites.
  • A/B tests and conversion goals that match an exact path can miss one version.
Landing page visits split across two URLsExample numbers
Landing page visits split across two URLs (example)/pricing: 620 visits; /pricing/: 380 visits0238475620380/pricing/pricing/visits

Example: 1,000 monthly visits to one page, shown as two rows in analytics.

How to check if your site has it

Test a few pages
  1. Load both versions

    Open a page with and without the trailing slash in a private window. If the address bar keeps what you typed and the page loads, there is no redirect.

  2. Check the status code

    Run the commands below. A redirect shows 301 and a Location header. Two 200 responses mean both resolve.

  3. Check the canonical tag

    View source on both versions and search for rel="canonical". Both should point at the same single URL.

  4. Crawl the site

    Tools such as Screaming Frog or the Page indexing report in Google Search Console show duplicate or alternate URLs. Look at the sitemap too.

Compare status codesbash
curl -sI https://example.com/pricing | head -n 5
curl -sI https://example.com/pricing/ | head -n 5

How to fix it

First choose a format. Either works for SEO. Pick the one your platform already favours, keep it everywhere, and redirect the other with a 301 (permanent redirect). Do not redirect files such as .css, .jpg or /index.php-style paths blindly.

Fix by platform
  1. Check Permalinks

    In Settings > Permalinks, see whether the structure ends with a slash (for example /%postname%/). WordPress normally redirects to match it.

  2. Look for conflicts

    If both versions still load, a caching plugin, redirect plugin or server rule may be overriding WordPress. Disable them one at a time and retest.

  3. Check your SEO plugin

    Make sure the canonical output matches the chosen format. Clear the cache afterwards.

Apache: remove the trailing slashhtaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ /$1 [R=301,L]
Nginx: remove the trailing slashnginx
rewrite ^/(.*)/$ /$1 permanent;

How to confirm it's fixed

After the change
  • The non-preferred version returns a single 301 to the preferred one.
  • The preferred version returns 200.
  • The canonical tag on both points to the preferred URL.
  • The sitemap lists only preferred URLs.
  • A test URL with ?utm_source=test keeps its parameters after redirecting.
  • Key forms and checkout pages still load and submit normally.

How to prevent it happening again

Write down the chosen format and use it in every new link, menu, ad destination and sitemap. Recheck after a migration, theme change, new caching layer or CDN rule, because these often reset redirect behaviour. A periodic crawl catches strays.

How FunnelGuard handles this

FunnelGuard does not check for trailing slash duplicates yet. It is a possible future check. Today FunnelGuard runs your real customer journeys, such as lead forms and checkouts, on a schedule and checks each step and the tracking hits, so it can show if a journey breaks after a redirect rule change.

To watch for this issue, run the curl check above on your key pages after each release, crawl the site regularly with a tool like Screaming Frog, and review the Page indexing report in Google Search Console. A free read-only FunnelGuard website audit is available, and the Free plan covers 1 site and 2 journeys.

Questions people ask

Do trailing slashes matter for SEO?

The slash itself does not help or hurt rankings. What matters is consistency: if both versions return 200, search engines see duplicates. Pick one, redirect the other and keep it consistent.

Should I use a trailing slash or not?

Either is fine. Follow your platform's default, because fighting it creates conflicts. Whichever you choose, use it in canonicals, internal links and the sitemap.

Why do both /page and /page/ load on my site?

The server or CMS is treating both as the same page without redirecting. This often happens after a migration, with a caching plugin or when a rewrite rule is missing.

Will Google penalise me for trailing slash duplicates?

No penalty is applied for this. Google usually picks one version, but it may choose the one you did not intend and split signals. A redirect and canonical remove that guesswork.

How do I redirect the trailing slash version to the non-slash version?

Add a 301 redirect rule. On Apache use a RewriteRule in .htaccess, on Nginx a rewrite in the server block, and on hosted platforms use their redirect manager.

Is a canonical tag enough instead of a redirect?

A canonical is a hint, not a command, and visitors and links still land on both URLs. A 301 redirect plus a matching canonical is the stronger setup.

Does the homepage need a trailing slash fix?

No. https://example.com and https://example.com/ are treated as the same address by browsers, so you do not need to redirect between them.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.