How to clean up messy URLs
URL cleanup finds product and collection URLs that end in a number, run long or no longer match the title, and changes them to short handles. This article shows how to review the suggestions, change several URLs at once and undo a change.
What URL cleanup lists
The tool lists products and collections whose handle meets at least one of these conditions.
| Reason | Meaning |
|---|---|
| Number at the end | The handle ends with a dash and a number, such as blue-shirt-2 |
| Too long | The handle is over 60 characters |
| Doesn't match the title | Fewer than half of the words in the handle appear in the page title |
Shopify's own collections, such as /collections/all, have a fixed handle. They are never listed or changed. Pages and blog posts are not part of URL cleanup.
Before you start
- Changing a URL can move your rankings for a few weeks while Google updates the links. Change only URLs that are clearly wrong, and leave URLs that already get traffic.
- Nothing is automatic. The app changes only the URLs you tick and confirm.
- Each change creates a 301 redirect from the old URL, so existing links keep working.
Change URLs
- Open SEO audit and select the issue URLs with numbers.
- Select Open URL cleanup. The page title is URL cleanup.
- In the table URLs to clean up, check the Current URL and the New URL for each row. The suggestion is built from the page title.
- Edit a New URL if you want a different one. A handle uses lowercase letters, numbers and single dashes only.
- Tick the rows you want to change. You can change up to 50 at a time.
- Select Change selected URLs. The label shows the count, for example "Change 5 URLs".
- In the dialog, read the note and confirm.
A progress bar shows "Changing URLs". When it finishes, a banner says how many URLs changed and that Shopify created redirects from the old URLs.
[!WARNING] The confirmation warns that rankings can move for a few weeks. Search engines take days to weeks to pick up a new URL.
Messages you may see
| Message | What it means |
|---|---|
| Enter a URL handle. | The field is empty |
| Use lowercase letters, numbers and single dashes only. | The handle has invalid characters |
| This is the current URL. Change it or untick the row. | The new URL equals the old one |
| "x" is already used by another product. | Another page already uses that handle, so the row fails and the others continue |
| You ticked N URLs. You can change up to 50 at a time, so untick some of them first. | Too many rows ticked |
If the whole list is clean, the page says "Your URLs look clean".
Suggest shorter URLs with AI
If a URL needs more than a title-based suggestion, the page always has a Shorten with AI button. Select it, then select Write N suggestions. It uses 1 AI write per URL and only fills the New URL fields. Nothing changes until you tick rows and confirm. See How to write meta titles, descriptions, product descriptions and ALT text with AI. If AI is not available, you can still type a new URL yourself.
Undo a URL change
- Open History and find the URL change.
- Select View changes.
- Select Undo change and confirm.
Undo puts the old URL back and removes the redirect the change created. Shopify then redirects the new URL back to the old one. You find that redirect on the Redirects page as URL cleanup undone. If the handle was changed again after the app set it, that page is kept as it is. See How to see what changed and undo it in History.
Related articles
- How the SEO score works
- How to check broken links and duplicate Product structured data
- How to create a redirect for a broken link
- How to see what changed and undo it in History
← How to export and import SEO data with CSV How to check broken links and duplicate Product structured data →