Install Easy Redirects by adding two code snippets to your theme. Use this method only if you can't turn on the Easy Redirects app embed, for example on an older (vintage) theme.
ℹ️ Most stores don't need this. On an Online Store 2.0 theme, turn on the app embed instead: see Online Store Installation. Use one method, not both.
Before you start
- You need permission to edit your theme code in Shopify.
- We recommend duplicating your theme first (Online Store → Themes → … → Duplicate), so you have a backup.
Step 1: Open your theme code
- In Shopify, go to Online Store → Themes.
- On your published theme, click the … (Actions) menu.
- Click Edit code.

Step 2: Add the 404 script to your 404 template
- Find your theme's 404 page template. Its name depends on your theme, for example:
templates/404.liquidsections/404.liquidsections/main-404.liquidtemplates/main-not-found.liquidsections/main-not-found.liquidtemplates/404-template.liquidsections/404-template.liquidtemplates/page-not-found-content.liquid
- Paste this code at the bottom of the 404 templatefile:
<script id="esc-redirects-404-script" src="https://easy-redirects.shopcircle.co/js/app.js"></script>
- Click Save.

Step 3: Add the redirect script to theme.liquid
- Find and open layout/theme.liquid.
- Paste this code at the bottom of the theme.liquidfile:
<script id="esc-redirects-script" src="https://easy-redirects.shopcircle.co/js/redirect-app.js"></script>
- Click Save.

Check that it works
Open a URL on your store that doesn't exist (for example /this-page-does-not-exist) in a private browser window. Then open Easy Redirects: on the Pro plan or higher, the URL should appear in Redirects → Unresolved 404s.
Good to know
- If you change or update your theme, the snippets don't move with it. Add them again to the new theme.
- Don't edit or remove the
idattributes in the snippets.
Still stuck? Contact our support team and we'll install it for you. You can also book a call with our Product Manager.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article