On this page
What this issue is
A URL is the web address of a page. A clean URL is short and describes the page, like /pricing or /blog/how-to-fix-404-errors. An unclean URL has one or more of these traits:
| Pattern | Example | Cleaner version |
|---|---|---|
| Numeric ID in a query string | /index.php?id=48213 | /services/plumbing |
| Random string | /landing/x7Kq9aZ2mP | /landing/free-quote |
| Post ID permalinks | /?p=123 | /blog/page-title |
| Very long path | /category/sub/sub2/sub3/2021/05/12/the-complete-guide-to-everything-about-boilers | /guides/boiler-guide |
| Session or tracking junk in the path | /shop;jsessionid=9F2A1 | /shop |
Why it costs you leads or sales
- Lower trust: people hesitate to click or share a link that looks random or suspicious.
- Weaker context: words in a URL give search engines and AI assistants a small hint about the page topic.
- Duplicate pages: the same content reachable at several ID or parameter versions can split signals between them.
- Messy reporting: analytics shows /p?id=48213 instead of a page name, so you misread which pages convert.
- Truncated links: very long URLs can break when pasted into emails, chats or print.
Example: illustrative numbers only, showing how readable links could earn more clicks when shared.
How to check if your site has it
List your indexed URLs
In Google Search Console, open Pages and look at indexed URLs, or search Google for site:yourdomain.com and scan the addresses.
Crawl the site
Run a crawler such as Screaming Frog (free up to 500 URLs) and export the Address column.
Filter for warning signs
In the export, filter for ?, =, id, long strings of letters and digits, and URLs over about 100 characters or more than four folders deep.
Rank them by importance
Mark which ones are money pages (services, products, landing pages) or get traffic. Fix those first and ignore filter or internal search URLs.
How to fix it
Set a readable permalink structure
Go to Settings > Permalinks and choose Post name. Avoid Plain, which gives /?p=123. WordPress redirects old post-ID URLs to the new ones automatically in most cases.
Edit single page slugs
Open the page, click the URL field in the sidebar and shorten the slug. WordPress redirects the old slug for posts, but add a redirect with a plugin such as Redirection to be sure.
Edit the URL handle
Open the product, page or collection, scroll to Search engine listing and edit the URL handle.
Keep the redirect box ticked
Tick Create a URL redirect for the old handle before saving. You can review them under Online Store > Navigation > URL Redirects.
Change the slug
In Pages, open page settings and edit the Slug. For CMS items, edit the slug field on the item.
Add the 301
Go to Project settings > Hosting > 301 redirects and add old path to new path, then publish.
Edit the page URL
In the Pages menu, open the page's three-dot menu > SEO basics and edit the URL slug.
Accept the redirect
Tick the option to create a 301 redirect from the old URL. You can also manage them in Marketing & SEO > URL Redirect Manager.
Change the URL slug
Open the page settings gear, go to General and edit the URL slug.
Add a redirect
Go to Settings > Developer Tools > URL Mappings and add a line like /old-path -> /new-path 301.
Add URL rewriting
Route readable paths to your handler (for example with server rewrite rules or your framework router) and store a slug per record instead of exposing the ID.
Redirect the old URLs
Send a 301 from each old ID URL to the new slug URL, as in the snippet below.
RewriteEngine On
RewriteCond %{QUERY_STRING} ^id=48213$
RewriteRule ^index\.php$ /services/plumbing? [R=301,L]Choose a simple pattern
Use lowercase words separated by hyphens, 3 to 5 words, and a hierarchy only as deep as it needs to be.
Make a redirect map
Write a spreadsheet with old URL and new URL for every page you change.
Update internal links
Change menus, buttons, sitemaps and canonical tags to point to the new URLs so they don't rely on redirects.
Update ads and emails
Point ad final URLs and email links to the new address, keeping your UTM parameters intact.
Submit the sitemap
Resubmit your XML sitemap in Google Search Console.
Before
- /index.php?id=48213&cat=7
- No hint of the topic in the address
- Old and new versions both live
After
- /services/plumbing
- Readable and easy to share
- Old URL 301 redirects to the new one
How to confirm it's fixed
- Open each old URL: it should land on the new URL with a single 301 hop, not a chain.
- Check the new URL returns 200 and has a canonical tag pointing to itself.
- Run a crawl again and confirm no internal links still point to old URLs.
- Check the sitemap lists only the new URLs.
- In Search Console, use URL Inspection on a new URL and request indexing.
- Open a landing page with ?utm_source=test added and confirm the parameter survives the redirect.
How to prevent it happening again
- Set the permalink or slug format once in your CMS and don't leave it on Plain or default IDs.
- Write the slug by hand when you publish a page, and keep it short.
- Add a URL rule to your publishing checklist: lowercase, hyphens, no IDs, no dates unless needed.
- Avoid changing live URLs without a redirect map.
- Re-crawl the site every quarter and filter for long or parameter-based addresses.
How FunnelGuard handles this
Day 0
You rename /p?id=48213 to /services/plumbing with no redirect.
Day 1
Old links from ads, emails and other sites land on a 404 page.
Day 7
You add a 301 from the old URL to the new one.
Week 4
Search results show the new URL and links work again.
Questions people ask
Do URLs with IDs hurt SEO?
Not directly in most cases. Google can crawl and index them. But readable URLs are easier to trust, share and understand, and ID versions can create duplicates, so clean slugs are better for important pages.
How long should a URL be?
There is no fixed limit, but aim for short and readable, roughly 3 to 5 words in the slug and a few folders at most. Very long URLs are harder to share and often signal a messy site structure.
Should I change my URLs if the site already ranks?
Only if the benefit is clear. Changing URLs is a risk even with 301 redirects, so for pages that rank well and have no real problem, it can be safer to leave them alone and apply clean URLs to new pages.
How do I change from /?p=123 to a readable URL in WordPress?
Go to Settings > Permalinks and choose Post name, then save. WordPress usually redirects old ID links to the new URLs, but test a few old links to confirm.
Do I need a 301 redirect when I change a URL?
Yes. A 301 tells browsers and search engines the page has moved permanently, so visitors and link value reach the new address instead of a 404 page.
Are URL parameters like ?utm_source bad?
No. Tracking parameters are normal and are not the problem. The issue is when the main address of an important page depends on an ID or random string instead of a readable slug.
Does FunnelGuard check for ugly URLs?
No. FunnelGuard does not check URL structure yet. It does run your real customer journeys and tracking checks, which can reveal a broken page or lost parameters after a URL change.
Related issues
- SEO-121Flat or chaotic URL structure with no topical hierarchyFix guide
- SEO-123Non-ASCII or encoded characters in URLs breaking linksFix guide
- SEO-124Underscores or spaces in URLsFix guide
- SEO-127Internal links to noindex or canonicalised pagesFix guide
- SEO-128Hub/pillar pages missing for main topicsFix guide
- SEO-114Orphan money pages with no internal linksFix guide