URL redirects
Send old addresses to new ones with a 301 - when a redirect applies, how paths are matched, markets and languages, adding and editing them, and importing or exporting them as CSV.
A URL redirect sends visitors (and search engines) from an address that no longer leads anywhere to a new one, with a permanent 301 redirect. Old links, bookmarks and search results keep working after a page, product or post moves, or after you move a store from another platform.
Redirects live on Online store > Menus > URL redirects.
When a redirect applies
A redirect only works when nothing lives at its old address any more. If a page, product, collection, blog or post is published at that address again, the page wins and the redirect waits; it applies again if the page goes away. This is how Shopify redirects work too.
Starsell adds redirects for you when you change the address of something visitors can open and keep Send visitors from … to … ticked: a page, a blog post or a blog (with its posts).
How paths match
| Redirect from | Matches |
|---|---|
/old-page | /old-page, /Old-Page, /old-page/ and /old-page?ref=mail. Case, a trailing slash, the query and the anchor don't matter. |
/pages/שלום | The same path written with %D7%A9… (addresses are compared decoded). |
Write the path without the market or language part. A redirect from /old-page also works at /eu/old-page or /he/old-page, and the visitor lands on the new address in the same market and language (/eu/pages/new). On the free /s/<slug> address and on a path of your own site the store's part is added too.
Redirect to is either a path on the store (/pages/new, /collections/sale?sort=newest) or a full address on any site (https://example.com/guide). The visitor's query (?utm_source=…) comes along unless the target has its own.
A redirect can't send a path to itself. Adding one from a path that already redirects replaces its target. When you add a redirect to /pages/new, any old redirect from /pages/new is removed, so visitors are never sent in a circle later.
Managing them
| Action | How |
|---|---|
| Add redirect | Fill Redirect from and Redirect to, then Add. A full old URL (https://old-shop.com/products/red) is fine in from: its path is kept. |
| Edit | On a row. |
| Delete | The trash icon on a row, or tick several and Delete. |
| Search redirects | Matches either side. |
The list shows 50 at a time, newest first.
Up to a minute
A new redirect works within a minute on every address of the store.
Import and export
Export downloads every redirect as a CSV file. Import reads one:
Redirect from,Redirect to
/old-page,/pages/new-page
/products/old-red-shoes,/products/red-shoes
/blog/news/hello,https://example.com/hello- Two columns: from, then to. The header row is optional. Shopify's redirect export uses the same columns and imports as it is.
- A path that already redirects gets the file's target. When a path is in the file twice, the last line wins.
- Lines that can't be used are skipped and listed after the import, with their line numbers ("Line 4: "price list" is not a path on the store").
- Up to 20,000 redirects per file.
Related
Menus
The store's navigation - the main menu and the footer menu, items nested up to three levels by dragging, what an item can link to, titles per language, and how the theme shows menus on desktop and phones.
Preferences
The home page's search listing - its title, meta description and sharing image per language, and how they show in Google and in link previews.