Trailing Slashes and URL Parameters
Covered here
- Why /page and /page/ can be two URLs
- The main types of URL parameters
- How to list every parameter on a site
- Which handling fits each parameter type
Short answer
A trailing slash and its absence create two URLs, so one format should return 200 and the other should 301 to it. URL parameters add variations for tracking, sorting, filtering, and pagination. List every parameter in your crawl, then canonicalize, redirect, block, or keep each type based on whether it changes the page's main content.
A Laguna bike shop’s crawl showed 18,000 URLs for 600 products. The extra 17,000 came from four parameters: ?sort=, ?view=grid, ?sessionid=, and ?utm_campaign=, plus a missing trailing slash rule. Small URL details, multiplied across a site, become thousands of duplicates.
Trailing slashes
/rooms and /rooms/ are technically different URLs. Check:
- One returns 200, the other 301s to it.
- Internal links, canonicals, and sitemaps use the 200 version.
- Redirects do not loop between a CMS rule and a server rule.
Types of parameters
| Type | Example | Changes content? | Typical handling |
|---|---|---|---|
| Tracking | ?utm_source=fb | No | Self-canonical on clean URL, never link internally |
| Session | ?sessionid=abc | No | Remove from URLs, use cookies |
| Sorting / view | ?sort=price | Order only | Canonical to clean URL, consider blocking |
| Filtering | ?color=red | Yes | Depends: see faceted navigation (Lesson 5.5) |
| Pagination | ?page=2 | Yes | Indexable, self-canonical |
| Search | ?q=shoes | Yes | Usually noindex or blocked |
How to audit
- Filter your crawl for URLs containing ? and export them.
- Split out parameter names (a spreadsheet split on ? and & works) and count URLs per parameter.
- For each parameter, record: type, URL count, canonical behavior, internal link sources.
- Check Search Console for indexed parameter URLs.
Practice: what kind of parameter?
Sort each item into the right group.
-
?utm_medium=email
Answer: Does not change content.
-
?page=3
Answer: Changes content.
-
?sessionid=8812a
Answer: Does not change content.
-
?brand=trek
Answer: Changes content.
-
?ref=homepage-banner
Answer: Does not change content.
Common mistakes
- Internal links with tracking parameters. Creates crawlable duplicates.
- Blocking parameters that carry canonicals. Google cannot see them.
- Canonicalizing pagination to page 1. Hides products on later pages.
Your action
Next, you will audit pagination and faceted navigation.
Key terms
- Trailing slash
- The / at the end of a URL path, as in /rooms/ versus /rooms.
- URL parameter
- A key and value after a ? in a URL, such as ?color=red or ?utm_source=fb.
- Active parameter
- A parameter that changes page content, such as filters or pagination.
- Passive parameter
- A parameter that does not change content, such as tracking or session IDs.
Questions beginners ask
Is a trailing slash better for SEO?
No. Consistency matters, not the choice. Match whatever your CMS uses by default and redirect the other.
Should I block parameters in robots.txt?
Only for parameters that create huge numbers of useless URLs, such as sort orders or session IDs. Blocking prevents Google from seeing canonicals on those URLs.
Do UTM parameters hurt SEO?
Not if pages have self-referencing canonicals and you never use UTMs in internal links.
Does Google still have a URL Parameters tool?
No. It was retired in 2022. You manage parameters with canonicals, links, robots.txt, and consistent site design.
Related lessons
Want someone to handle SEO for your business while you learn? The team at Remar Digital can help.