How to undo a redirect
You can remove a redirect the app created, within 30 days of creating it. After you undo it, visitors to the old link see a 404 page again. A redirect you changed with Use suggestion is different: Undo points it back to where it went before. This article shows how to undo one redirect, how to undo a whole batch from History, and what happens to the link afterwards.
Before you start
- You can undo a redirect for 30 days after the app creates it. After that the row shows Undo expired.
- You can only undo redirects the app created. For others, use Manage all redirects in Shopify.
- URL cleanup redirects are undone from History, not from this page. Their row has an Undo in History link that opens the change.
- Undoing a redirect changes only that redirect. It does not touch your products, collections or pages.
Undo one redirect
- In the app, open Redirects.
- In the table Redirects Sol: SEO Optimizer created, find the row. The Why column tells you where it came from: Product deleted, Collection deleted, 404 fix, Broken link, URL cleanup or URL cleanup undone.
- If the row has an Undo button at the end, select it. A row from URL cleanup has an Undo in History link instead; select it to open that change in History and undo it there (see below). After 30 days that row shows Undo expired.
- In the Undo this redirect? window, select Undo redirect.
A toast says "Redirect removed". The redirect is deleted from Shopify, and the old link shows a 404 page again.
Undo a change made with Use suggestion
- On the row of the redirect, select Undo.
- The Undo this change? window shows which page the link will go to again. Select Undo change.
A toast says that the old link redirects to the previous page again. The redirect is not removed, so the old link keeps working.
Some redirects changed with Use suggestion earlier show Can't be undone instead of Undo. To change where such a redirect goes, use Manage all redirects in Shopify.
What happens to the link afterwards
What you see next depends on where the redirect came from.
- A redirect you changed with Use suggestion. The redirect goes back to its previous page. Its row returns as it was before the change, including the suggestion, so you can select Use suggestion again. The 30 days of undo for that row count from when the redirect was first created. If they are not over, selecting Undo again removes the redirect.
- A redirect from the 404 log (404 fix). The link moves back to the Open tab of Links that return 404, so you can send it to a different page. See How to create a redirect for a broken link.
- A redirect for a deleted product or collection. The old link becomes a 404 again, because the product or collection is still deleted. Visitors who open it see an error page. If the link is opened again, it can show up in the 404 log, where you can redirect it to a page of your choice. If you turned on automatic redirects, the app does not create the redirect a second time for the same deletion, so choose a target yourself if you still want one.
- A redirect from URL cleanup. You can't undo it with the Undo button on Redirects. Select Undo in History on its row, then use Undo change there; that puts the old URL back and removes the redirect.
- A redirect marked URL cleanup undone. After you undo a URL cleanup, Shopify redirects the new URL back to the old one. Selecting Undo on this row removes that redirect, so the new URL shows a 404 page. The page itself keeps its old URL.
- A redirect from a broken link check. The old link shows a 404 page again.
When an undo is skipped
The app removes a redirect, or points it back, only if it still exists in Shopify with the target the app set. If someone changed or deleted it in Shopify first, the app leaves it alone and says The redirect wasn't changed.
If the app cannot confirm the undo, it says We couldn't undo this change. Reload the page to see where the redirect goes before you try again.
[!WARNING] Removing a redirect makes the old link a 404 again. If search engines or other sites still link to it, visitors will land on an error page.
Undo from History
Each redirect action is one line in History, with the Redirects filter. A bulk redirect, or one pass of automatic redirects, is a single line. Its View redirects button opens the Redirects page, where you undo each redirect with Undo. URL cleanup is the exception: undo it from History with View changes > Undo change, which puts the old URL back and removes its redirect. The Undo in History link on the redirect's row takes you straight there. See How to see what changed and undo it in History.
History records the undo of one redirect as its own line, and that line cannot be undone. Its title shows the result:
| Title in History | What happened |
|---|---|
| Redirect removed | The redirect was removed |
| Redirect pointed back | The redirect goes to its previous page again |
| Redirect not changed | Nothing was undone and the redirect was left as it is |
| Redirect undo didn't finish | The app could not confirm the undo |
Change where a redirect goes
You do not have to remove a redirect to change its target. For a redirect from the deleted-products setting, if the app has an AI suggestion, select Use suggestion on its row. To go back to the previous target, select Undo on that row. See How AI-suggested redirect targets work. For any other change, undo the redirect and create a new one from the 404 log, or edit it in Shopify with Manage all redirects in Shopify.
Should you undo it at all
Undo a redirect when it points visitors to the wrong page, or when you recreated a page at the old address and want the cleanup to be tidy. Keep a redirect when the old link still has visitors or other sites linking to it, because removing it sends them to an error page.
The app never removes redirects on its own
The app never deletes a redirect unless you undo it. Redirects stay in your store, even after you uninstall the app, until you remove them in Shopify.