URLs Significantly Longer Than the Site Average
Some URLs are much longer than your site's typical URLs, making them hard to share and potentially confusing for users.
By Seoxpert Editorial · Published
Why it matters
While search engines like Google can process long URLs, users may have trouble sharing or remembering them. Long URLs are often truncated in emails, social media, or messaging apps, which can break links or reduce trust. Outlier URLs may also signal deeper site structure or parameterization issues.
Impact
Leaving long outlier URLs unresolved can lead to poor user experience and sharing difficulties.
How it's detected
An automated crawler compares each URL's length to the site's 90th percentile (P90) length and flags those exceeding 1.5× P90 or 200 characters.
Common causes
- Excessive path nesting or deeply nested directories
- Unnecessarily long or unstripped query strings
- Session IDs or tracking parameters in URLs
- CMS configurations that generate verbose URLs
- Failure to canonicalize parameterized URLs
How to fix it
Code examples
Redirect long, parameterized URLs to canonical version (Apac
RewriteCond %{QUERY_STRING} ^(.*&)?sessionid=[^&]+(&.*)?$
RewriteRule ^product/(.*)$ /product/$1? [R=301,L]Remove unnecessary query parameters before generating links
const url = new URL(window.location.href);
url.searchParams.delete('utm_source');
url.searchParams.delete('sessionid');
window.history.replaceState({}, '', url);FAQ
Do long URLs hurt my Google rankings?
No, Google can process long URLs, but they may hurt user experience and sharing.
How can I find which URLs are too long on my site?
Use an SEO crawler or analytics tool to identify URLs exceeding your site's typical length.
Should I always shorten long URLs?
Shorten URLs when possible, especially if they contain redundant paths or parameters, but ensure redirects and canonical tags are set up properly.
What is a safe maximum length for URLs?
While browsers support up to 2,000 characters, keeping URLs under 100 characters is generally user-friendly.
Found this issue on your site?
Run a scan to see if URLs Significantly Longer Than the Site Average affects your pages.
Scan my website →