When setting up my Canadian market in Shopify, I accidentally chose to use ‘subfolders’ which creates a duplicate of all our URLs for Canadians (adding “/en-ca/”). Unfortunately I only noticed this after a few months so a bunch of these pages have been indexed, linked to etc.
Now I want to change the setting so that we only have one URL. It’s an easy setting change in shopify, but all the /en-ca/ URLS go to 404s. Theoretically really easy to create some type of wildcard redirect, ie IF any url with /en-ca/, remove and redirect to the same url without /en-ca/
Anyone know how I can achieve this? Thanks in advance.
@serhato you should be able to an * (asterisk) as the wildcard character.
I didn’t find official documentation on using a wildcard to redirect websites in Shopify, but it seems to be working for two of my Shopify sites and this StackOverflow comment says it works too.
@Jackson_Cunnin2, did you end up using an asterisk and creating redirects with a URL pattern?
Side note-ish — if the old format doesn’t have any other websites linking to it, you can just use Google Search Console to reindex. Take a glance at the Google Search Central documentation for Crawling & Indexing , there are a few subsections that should help, if you haven’t found an answer.