How to Fix URLs Longer Than 100 Characters on Your Site
This check flags pages whose complete URL is longer than 100 characters. The count includes the protocol, domain, path and query string. Long URLs usually come from deep folder nesting, auto-generated slugs full of filler words, dates, or session and tracking parameters. By the end of this guide you will have listed every offending URL, shortened it to a clean slug, redirected the old address, and updated internal links so crawlers only find the short version.
Why it matters
URL length is a minor ranking factor. Long URLs still cause real problems, though. Search results and AI answer citations truncate them, so users can't see where a link goes. They get cut off when pasted into email or chat. Parameterized versions also create duplicate URLs that split link signals and waste crawl budget. Short, descriptive URLs are easier to share and easier to read in SERP breadcrumbs, and they are less likely to break when copied.
What you need
Step-by-step fix
Export every URL over 100 characters
Crawl the site and export all indexable HTML URLs to a spreadsheet. Add a length column with =LEN(A2) and filter for values above 100. Measure the full URL, including https://, the domain and any ?query string, because that is what the check measures. Sort by length so you start with the worst offenders.
=LEN(A2) =IF(LEN(A2)>100,"TOO LONG","OK")
Diagnose why each URL is long
Tag each long URL with its cause. Most cases fall into a few patterns:
- Deep folder nesting, e.g.
/shop/category/subcategory/sub-subcategory/ - Slugs auto-generated from the full title, including stop words like a, the, how, to, you, your
- Dates in the path, e.g.
/2021/03/15/ - Session IDs or tracking parameters, e.g.
?sessionid=,?utm_source=,?sid= - Faceted filter parameters, e.g.
?color=blue&size=m&sort=price
The fix for parameters is different from the fix for slugs, so keep the two groups separate.
Remove session and tracking parameters from links
Parameters should never appear in internal links or sitemaps. Store sessions in cookies, not URLs. Turn off any "append session ID to URL" option in your platform or in legacy PHP settings. Remove utm_ parameters from internal navigation, because UTMs belong only on external campaign links. On parameterized pages, add a rel="canonical" pointing to the clean URL.
<!-- On https://www.example.com/shoes?sessionid=8f3a9c2e&utm_source=nav --> <link rel="canonical" href="https://www.example.com/shoes"> ; php.ini – stop PHP from writing session IDs into URLs session.use_trans_sid = 0 session.use_only_cookies = 1
Write shorter slugs and flatten folders
For each long page URL, write a new slug of 3–5 meaningful words. Drop stop words, dates and repeated category names. Collapse folders that add no meaning: /products/category/kitchen/cookware/pans/ can usually become /cookware/pans/. Record each old URL and its new URL side by side in your spreadsheet as the redirect map. Keep the main keyword in the slug, and use lowercase words separated by hyphens.
Old: https://www.example.com/blog/2021/03/15/the-complete-guide-to-how-you-can-improve-your-email-open-rates New: https://www.example.com/blog/email-open-rates Old: https://www.example.com/products/category/kitchen/cookware/non-stick-frying-pans/example-co-28cm-pan New: https://www.example.com/cookware/example-co-28cm-pan
Change the slugs and add 301 redirects
Update each slug in your CMS. Then add a permanent (301 or 308) redirect from every old URL to its new URL. Redirect straight to the final URL, never through a chain. If you changed a folder structure, use a pattern rule instead of hundreds of one-off redirects.
# Nginx – one-off and pattern redirects
location = /blog/2021/03/15/the-complete-guide-to-how-you-can-improve-your-email-open-rates {
return 301 /blog/email-open-rates;
}
rewrite ^/blog/\d{4}/\d{2}/\d{2}/(.*)$ /blog/$1 permanent;
# Apache (.htaccess)
Redirect 301 /blog/2021/03/15/the-complete-guide-to-how-you-can-improve-your-email-open-rates /blog/email-open-rates
RedirectMatch 301 ^/blog/[0-9]{4}/[0-9]{2}/[0-9]{2}/(.*)$ /blog/$1Update internal links, canonicals and sitemap
Redirects are a safety net. Your own site should link directly to the new URLs. Search-and-replace old URLs in content, menus and footers. Check that each page's canonical tag shows its new URL. Regenerate your XML sitemap so it lists only the short URLs, then resubmit it in Google Search Console under Indexing > Sitemaps and in Bing Webmaster Tools.
wp search-replace 'https://www.example.com/blog/2021/03/15/the-complete-guide-to-how-you-can-improve-your-email-open-rates' 'https://www.example.com/blog/email-open-rates' --dry-run
Recrawl and confirm the result
Run your crawler again and repeat the length filter. The number of indexable URLs over 100 characters should drop to zero or near zero. Confirm that every old URL returns a single 301 hop to a 200 page. In Google Search Console, use URL Inspection on a few new URLs and request indexing for your most important pages.
curl -sIL https://www.example.com/blog/2021/03/15/the-complete-guide-to-how-you-can-improve-your-email-open-rates | grep -iE '^(HTTP|location)'
Platform-specific notes
WordPress
Set Settings > Permalinks to "Post name" to drop dates from post URLs. Note that changing this setting changes every post URL, so add a pattern redirect at the same time. Edit individual slugs in the block editor sidebar under Post > URL. WordPress automatically redirects old post slugs via the _wp_old_slug meta field, but not changed parent pages or categories. Use the Redirection plugin or Rank Math/Yoast Premium redirect managers for those.
Shopify
Edit handles under Products (or Collections, Pages, Blog posts) > Search engine listing > Edit > URL handle. Keep "Create a URL redirect" ticked. The /products/, /collections/ and /blogs/ prefixes are fixed and cannot be removed. Collection-scoped URLs like /collections/x/products/y are often the long ones, so update your theme's product-card links to use the plain /products/y URL.
Wix
Change page slugs in Pages & Menu > (page) > SEO basics > URL slug. Change blog post slugs in the post's SEO settings. Wix offers to create a 301 redirect when you change a slug. Manage existing redirects in Dashboard > Marketing & SEO > SEO > URL Redirect Manager. Fixed prefixes such as /post/ and /product-page/ cannot be removed.
Next.js
Rename the route folder or slug data. Then add entries to the redirects() function in next.config.js with permanent: true, which sends a 308 that Google treats like a 301. For many URLs, load the redirect map from a JSON file inside redirects(), or handle it in middleware so the config doesn't grow too large.
Cloudflare
If you can't edit server config, use Rules > Redirect Rules for patterns. For large one-to-one maps, use Bulk Redirects (Account > Bulk Redirects) with status 301 and "Preserve query string" turned off for session-parameter cleanups.
Check that it worked
✅ How to verify
- Recrawl the site and confirm no indexable URL, measured with protocol, domain and query string, exceeds 100 characters.
- Run curl -sIL on a sample of old URLs and confirm each returns one 301/308 followed by a 200.
- Check the regenerated XML sitemap and confirm it contains only the new short URLs, none with session or utm parameters.
- Use Google Search Console URL Inspection on several new URLs and confirm the Google-selected canonical matches the new URL.
⚠️ Common mistakes
- Counting only the slug or path. The check measures the full URL, so a long domain plus a 70-character path can still fail.
- Changing slugs without adding 301 redirects, which causes 404s and loses backlink value.
- Leaving internal links pointing at old URLs, so every click and crawl goes through a redirect.
- Renaming well-ranking URLs that already pass the check, or redirecting many old URLs to the homepage instead of their direct equivalents.
Is this still an issue on your site? Run a free audit — ZORO checks this and 294 other SEO, AI-visibility, accessibility and security signals, with fixes for your platform.
Check my site freeFAQ
Does URL length affect Google rankings?
Only slightly. Google has said URL length isn't a meaningful ranking factor on its own. Shorter URLs do display better in results, get shared and copied more reliably, and avoid duplicate parameterized versions, and those effects matter more than the length itself.
What is the ideal URL length for SEO?
Aim for well under 100 characters for the full URL, ideally 50–75. The slug itself is best at 3–5 descriptive words separated by hyphens.
Will changing my URLs hurt my rankings?
There is usually a short fluctuation while Google recrawls. Rankings generally recover if every old URL 301-redirects to its direct replacement and your internal links and sitemap use the new URLs. Avoid renaming URLs that don't need it.
Should I remove stop words like "the", "and", "how" from URLs?
Yes, when they add length without meaning. Keep them only when removing them changes the meaning or makes the slug confusing. For example, "how-to-train-a-dog" can become "train-dog" or "dog-training".