> ## Documentation Index
> Fetch the complete documentation index at: https://help.get-ryze.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# URL redirects and migrations

> How to manage URL redirects on Shopify, what to redirect when products are removed, and how to run a migration without losing accumulated ranking and citation history.

A redirect preserves the value a URL has accumulated — links, rankings, and citation history — when that URL changes or disappears. Losing redirects during a migration is one of the few SEO mistakes that is both severe and permanent.

## Creating redirects on Shopify

URL redirects are managed in the Shopify admin under **Content → Menus → View URL Redirects** (older admins show this under **Online Store → Navigation**). Shopify issues them as `301` (permanent), which is what you want for anything that has moved for good.

You can bulk import redirects via CSV, which is essential for migrations.

## What to redirect

| situation | action |
| - | - |
| Product permanently discontinued | 301 to the closest equivalent product, or the parent collection |
| Product temporarily out of stock | **Do not redirect.** Keep the page live — see [out-of-stock products](https://help.get-ryze.ai/ecommerce/out-of-stock-products.md) |
| Collection merged into another | 301 to the surviving collection |
| Product renamed (handle changed) | Shopify creates this automatically; verify it exists |
| Page deleted with no equivalent | Let it return 404 (Shopify serves 404 for deleted products and pages and has no built-in way to send 410), or 301 to the most relevant parent |
| Domain change | 301 every URL to its new equivalent |

## Redirect to the closest equivalent, not the homepage

Mass-redirecting removed products to the homepage is treated as a soft 404 — the destination does not satisfy the original intent, so the value is not passed. Redirect to the nearest genuinely relevant page. Where none exists, the collection is a better target than the homepage.

## Migration checklist

Losing traffic in a migration is almost always a redirect failure. Before switching:

1. **Crawl the existing site** and export every indexable URL
2. **Export Search Console data** — every URL with impressions or clicks over the last 16 months
3. **Export your backlink profile** — URLs with external links are the highest priority
4. **Map old URL → new URL** for every one of them, individually
5. **Load redirects before the switch**, not after
6. **Verify after launch** by crawling the old URL list and confirming each returns a single 301 to a 200

## After launch

* Submit the new sitemap in Search Console
* Watch Search Console → Pages for a spike in 404s and fix as they appear
* Check for redirect chains — each additional hop loses a little and wastes crawl
* Expect a temporary dip in rankings; a clean migration recovers, a broken one does not

## Redirect chains

`A → B → C` should be collapsed to `A → C`. Chains accumulate silently over years of small changes and waste crawl budget on large stores. Check them with a crawler after every migration.

## Why this matters beyond rankings

A moved page loses accumulated citation history in AI answers as well as search rankings. Since citations are volatile to begin with, a broken URL is unlikely to be re-earned quickly. Decide slugs once and keep them.

## What Ryze does

The [Technical Audit](https://help.get-ryze.ai/seo/optimizations.md) finds broken pages that still get search clicks. **Fix with agent** creates the 301 redirect in Shopify only when your connection has redirect access — that needs a [Shopify Custom App](https://help.get-ryze.ai/integrations/shopify-custom-app.md) with the `write_online_store_navigation` scope. The standard Shopify connection can't create redirects, so the agent gives you the exact from → to pairs to add under **Content → Menus → View URL Redirects**.

## Related

* [Fixing duplicate content and canonicals](https://help.get-ryze.ai/shopify/duplicate-content.md)
* [Sitemaps on Shopify](https://help.get-ryze.ai/shopify/sitemaps.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.