On this page
What this issue is
A URL variant 404 happens when the same page answers at one address but returns "Not Found" at a near-identical one. The two common cases are the trailing slash (/pricing versus /pricing/) and letter case (/Pricing versus /pricing).
Domain names are not case-sensitive, but the path after the domain often is. Linux servers such as Apache and Nginx usually treat /Landing and /landing as different files. Whether the slash matters depends on the server, the CMS and the rewrite rules.
| Platform | Slash variant | Case variant |
|---|---|---|
| WordPress | Usually redirects to the permalink format | Often redirects or resolves, depending on setup |
| Shopify | Usually handled for you | Usually handled for you |
| Webflow, Wix, Squarespace | Usually handled, but check custom paths | Check each one |
| Static files on Apache or Nginx | Can 404 or loop | Often 404 on Linux |
| Custom apps and routers | Depends on the route definitions | Often case-sensitive |
Why it costs you leads or sales
The impact is usually low and patchy, because most links point at the working version. But the damage lands on paid and tracked traffic: a typo or a tool that adds a slash sends a click you paid for to a dead page.
Common sources of bad variants are ad destination URLs typed by hand, email builders that add or strip slashes, QR codes on print, partner links, and social bios. Each visitor who hits the 404 usually leaves, and the click is still billed.
- Ad clickLink uses /offer/ with a slash
- ServerOnly /offer is routed, so it returns 404
- Landing pageNever shown
- Form or checkoutNever reached
The landing page exists, but the variant in the link does not resolve.
Example: 1,000 paid clicks split across three link variants, where only the exact lowercase no-slash URL works.
How to check if your site has it
List your important URLs
Collect landing pages, thank-you pages and checkout paths from your ad accounts, email tools, QR codes and sitemap.
Try each variant by hand
Open the URL with a trailing slash added or removed, and with the first letter capitalised. Note any that show a 404.
Check the status code
Use the command below. You want 200 for the canonical URL and a single 301 to it for variants.
Check the ad destinations themselves
Open the final URLs in Google Ads, Meta Ads and other platforms and test them exactly as written, including any tracking parameters.
for u in "https://example.com/offer" "https://example.com/offer/" "https://example.com/Offer"; do
curl -s -o /dev/null -w "%{http_code} %{redirect_url} <- $u\n" "$u"
doneHow to fix it
Pick one canonical form for each page (most sites choose lowercase, and either always a slash or never). Then 301-redirect every other form to it, and make sure internal links, the sitemap and ad URLs all use the canonical form.
Set the permalink format
Go to Settings > Permalinks and pick a structure. WordPress then redirects slash variants of posts and pages to match it.
Check custom post types and plugins
If a variant still 404s, look at redirect, SEO or landing page plugins. Their rules can override core behaviour.
Add a manual redirect where needed
Use your redirect plugin or server rules to send the broken variant to the live URL with a 301.
Add a URL redirect
Go to Content > Menus > View URL Redirects (or Online Store > Navigation in older admins) and click Create URL redirect.
Map the variant
Enter the broken path as Redirect from and the live path as Redirect to. Test both afterwards.
Open 301 redirects
Go to Site settings > Publishing > 301 redirects.
Add the variant
Enter the old path and the live path, add it, then publish the site.
Use URL mappings
Go to Settings > Developer Tools > URL Mappings (the menu name can vary by version).
Add a rule
Use the format /old-path -> /new-path 301 and save.
Add a redirect
Go to Marketing & SEO > SEO Tools > URL Redirect Manager (menu names can change).
Map the variant
Enter the old URL and choose the live page as the target.
Apache (.htaccess)
Add a rule that removes the trailing slash on non-directory URLs, shown in the snippets below.
Nginx
Add a rewrite for the trailing slash and lowercase paths in the server block, then reload Nginx.
App routers
Enable your framework's option to ignore case or strict trailing slashes, or add an explicit redirect route.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ /$1 [R=301,L]rewrite ^/(.*)/$ /$1 permanent;Before
- /offer returns 200
- /offer/ returns 404
- /Offer returns 404
- Ad and email links mix all three
After
- /offer returns 200
- /offer/ returns a 301 to /offer
- /Offer returns a 301 to /offer
- Ads and emails use the canonical URL
How to confirm it's fixed
- Each variant returns one 301 to the canonical URL, then a 200
- There is no redirect chain longer than one hop
- Query strings such as gclid and utm_source survive the redirect
- The page's canonical tag points to the canonical URL
- The sitemap lists only the canonical URLs
- Ad final URLs and email links use the canonical form
How to prevent it happening again
- Write down the URL convention (lowercase, slash or no slash) and share it with whoever builds ads and emails
- Paste final URLs from the live address bar, not by retyping
- Test the slash and case variants after every migration or permalink change
- Re-test after switching hosts, because Apache, Nginx and CDN rules differ
- Review the Search Console Pages report for 404s that look like variants of live URLs
How FunnelGuard handles this
FunnelGuard does not check this yet. Checking slash and case variants of your URLs is a possible future check, not something the service does today.
What FunnelGuard does do is run your real customer journeys on a schedule from the EU or the US and check each step. If the page your journey starts from stops loading, a run fails, is re-checked from a second region, and you get one alert with a screenshot and a likely cause. That only covers the URL the journey actually uses, so a variant that appears only in some ads or emails will not be tested unless you build a journey that starts from it.
To watch for this yourself, keep a short list of the exact URLs used in ads, emails and QR codes, and run the curl loop above after each release. Google Search Console's Pages report and a crawler such as Screaming Frog can also surface 404s. A free read-only website audit is available from FunnelGuard, and the Free plan covers 1 site and 2 journeys with daily checks if you want a baseline on your main page.
Questions people ask
Why does my page work without a trailing slash but 404 with one?
Your server or CMS only has a route for one form. Apache, Nginx and many app routers treat /page and /page/ as different paths. Add a 301 redirect from the failing form to the working one, or fix the permalink setting.
Are URLs case-sensitive?
The domain name is not, but the path often is. Linux servers usually treat /Offer and /offer as different files, while Windows servers often do not. Test your own site rather than assuming.
Should I use a trailing slash or not?
Either works, as long as you pick one and redirect the other. Follow what your platform already produces, such as the WordPress permalink format, to avoid redirect loops. Consistency matters more than the choice.
How do I redirect a trailing slash URL to the non-slash version?
On Apache, use a RewriteRule that matches ^(.+)/$ and redirects to /$1 with a 301, excluding real directories. On Nginx, use rewrite ^/(.*)/$ /$1 permanent. On hosted builders, use their 301 redirect settings.
Do trailing slash redirects hurt tracking or ads?
Only if the redirect drops the query string. Test with gclid and utm parameters added, and confirm they are still in the final URL. A clean 301 that keeps them is fine.
How can I find which URL variants return 404?
Test the slash, no-slash and capitalised versions of every ad, email and QR code URL with curl or a browser. Also check Google Search Console's Pages report and run a crawler across the site to spot 404s.
Does FunnelGuard detect trailing-slash or case 404s?
No, not yet. It is a possible future check. FunnelGuard does run your real journeys on a schedule and alerts you if a step fails, but it only tests the URLs those journeys use.
Related issues
- OPS-002Homepage up but a funnel page returns 404Fix guide
- OPS-017www and apex behave differently (one broken)Fix guide
- OPS-019Old ad URLs (pre-migration) 404 with no redirectFix guide
- OPS-013Thank-you page down while landing page is upFix guide
- OPS-001Whole site down (connection refused / no response)Fix guide
- OPS-003Landing page returns 5xx (500/502/503/504)Fix guide