How To Redirect Your 404 Page To The Home Page In Shopify
Reduce bounce rate by redirecting all your 404 not found pages to the main page of your online shop. This will allow consumers to find more valuable material on your site.
I'll walk you through the process of redirecting your Shopify 404 page to your home page in this post.
- From your Shopify admin, go to Online Store > Themes.
- Find the theme you want to edit, and then click Actions > Edit code.
- In the Templates directory, click 404.liquid.
- Removing all existing code, then inserting the below code to this file
{% layout none %}<script>window.location.replace("/");</script>
- Click Save and you are done.