I'm looking to fix our 404 errors in Shopify. We have opened up multiple markets, but since this caused many many URL's to be created (through many subdomains), we now decided to remove these markets for now. A second reason for this is the 404 errors I encounter regarding the URLs from subdomains.
See above, the picture, in which a product page with a specific subdomain (NL market) links to another URL towards the same product, but with a "double" subdomain in the URL:
To help fix your 404 errors, you can take the following steps:
Redirect the old URLs to the correct ones. You can use a tool like the Shopify Redirect app or set up redirects in your .htaccess file. This will ensure that users who click on the old links are automatically redirected to the correct URL.
Remove the links from your website that point to the incorrect URLs. This will prevent new users from encountering the 404 error.
Update your sitemap.xml file to include only the correct URLs. This will help search engines understand the new structure of your website and ensure that your pages are indexed correctly.
Monitor your website for any new 404 errors. You can use a tool like Google Search Console to get notifications when a 404 error occurs, and then take action to fix it.
Consider using a rel="canonical" tag on your product pages. This will indicate to search engines which version of a page is the preferred one and can help avoid issues with duplicate content.
If you are still encountering issues, it may be helpful to reach out to a Shopify expert or a web developer for further assistance