Hello @IrakliRogava Problem Summary:
You’re trying to set up a URL redirect to the homepage (root path /) in Shopify, but it’s not working due to Shopify’s built-in restriction:
Shopify doesn’t allow URL redirects to the root URL (/) via the standard URL redirect settings in the admin.
So, you’re seeing the “URL redirect system error.” The proper way to handle this is to modify your theme code to implement a redirect directly via Liquid or JavaScript.
Solution: Redirect using Theme Code (Reliable Method)
This will be done inside your theme files, usually in the theme.liquid layout file.
Option 1: Redirect a specific URL to the homepage using Liquid
Use this method if you want to redirect users visiting a specific path (e.g., /old-page) to the homepage.
Steps:
-
Go to Online Store > Themes.
-
Click “Actions > Edit Code” on your live/published theme.
-
In the Layout folder, open theme.liquid.
-
Add this before the tag or anywhere near the top of the file:
{% if request.path == '/old-page' %}
{% endif %}
Replace /old-page with the actual path you want to redirect from.
Option 2: Handle multiple or more complex redirects
You can make it smarter with an array of paths:
{% assign redirects = "/old-page1,/old-page2,/outdated" | split: "," %}
{% if redirects contains request.path %}
{% endif %}
Option 3: Redirect everything except homepage (less common)
If you’re trying to force all traffic to the homepage (e.g., temporary store closure or landing-only site), this would work:
{% unless request.path == '/' %}
{% endunless %}
Notes:
. Shopify’s redirect system is meant for SEO-safe permanent redirects except for /.
. JavaScript redirects happen client-side and aren’t ideal for SEO, but they work when you hit platform limitations like this.
. You should test the behavior in incognito mode to ensure no cache is interfering.
Thank you 