All things Shopify and commerce
Is it possible to redirect relatively? Example: 'shop.com/A/x.html' to 'shop.com/B/x.html'
I want to redirect customers to a special site with different 'Custom-Liquid-Sections' because the 'Translate&Adapt'-App does not translate these sections. So i made another store front with manually edited 'Custom-Liquid-Sections'. I need to redirect from default language selection ./en/. to my special (sub)site ./en-en/. is there anyway to do this nicely without htaccess (301)?
Thanks for your help in advance!
Add the following in the 'theme.liquid' file, in the code editor:
<script>
if (window.location.href === "shop.com/A/x.html") { window.location.href = "shop.com/B/x.html"; }
</script>
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025