How to Set Up Dynamic Redirects in Shopify Without Regex?

Hi!
I need to set up redirects for URLs like:

/customer/account/login/referer/***

Where *** can be anything.

Since Shopify doesn’t support regex in URL redirects, is there a way to achieve this?
The redirect should send users either to the login page or the homepage.

I’d prefer not to use JavaScript for this. What’s the best way to implement it within Shopify’s built-in tools?

Hi,

To set up dynamic redirects in Shopify without regex, you can manually create specific URL redirects using Shopify’s built-in tools. For example, if you need to redirect users from /customer/account/login/referer/*** to either the login page or homepage, you would create multiple specific redirects for each possible variation of the URL path.

If you’re dealing with a larger set of URLs, an SEO URL migration service can help manage redirects more efficiently by mapping old URLs to new ones, ensuring all necessary redirects are correctly set up during a migration. This service simplifies the process and ensures that your redirects are properly handled without having to manually update each URL. Let me know if you need more details!

If this was helpful, hit the like button and accept the solution.
Thanks