How to import/export redirect urls in bulk? - Shopymate

Share
Here's a step-by-step guide on how to import and export redirect URLs in bulk using the Quick Redirects & 404 Shopify App:
Export Redirects in Bulk
-
Access the Quick Redirects & 404 App:
- Go to your Shopify Admin.
- Click on Apps > Select Quick Redirects & 404.
-
Export Existing Redirects:
- Navigate to the Redirects tab.
- Click on the Export button (usually located at the top-right corner).
- Choose between:
- All Redirects – Export the entire list of redirects.
- Filtered Redirects – Export based on applied filters (e.g., only 301s).
- Download the CSV file and save it to your system.
Import Redirects in Bulk
1. Download the CSV Template
- In the Quick Redirects & 404 app, go to the Import Redirects section.
- Click Download CSV Template to get a pre-formatted sheet.
2. Prepare Your CSV File
Ensure the CSV is formatted correctly with the following columns:
From URL |
To URL |
Redirect Type |
/old-url |
/new-url |
301 |
/products/* |
/collections/all/{{ wildcard }} |
301 |
/old-blog/* |
/blogs/news/{{ wildcard }} |
302 |
Notes:
- From URL: This is the old path (e.g., /old-page).
- To URL: This is the new path where you want to redirect (e.g., /new-page).
- Redirect Type: Use 301 (permanent redirect) or 302 (temporary redirect).
- Wildcards: Use * in the From URL and {{ wildcard }} in the To URL to manage dynamic patterns.
3. Upload the CSV File
- Go to the Import Redirects section in the app.
- Click Upload CSV and select your prepared CSV file.
- Review the preview of your redirects.
- Click Confirm Upload to complete the import.
4. Validate the Import
- Check the Redirect List to confirm all entries are imported.
- Test a few redirected URLs to verify they work correctly.
Pro Tips:
- Avoid Redirect Chains: Ensure the To URL doesn't point to another redirect.
- Bulk Cleanup: Use the Export feature to audit and clean outdated redirects.
- Dynamic Redirects: Utilize wildcards for product/category changes (e.g., /products/* to /collections/all/{{ wildcard }}).