Hi @pratikiscom
I see you’re dealing with Shopify automatically generating 404 pages with en-gb and en-tr extensions, even though your market and multi-language settings are turned off. That’s frustrating, especially when Google Search Console keeps flagging them as errors. Let’s break this down and find a fix.
Why This Happens
Even if you have markets and multi-language settings disabled, Shopify might still generate locale-specific URLs due to past configurations, theme settings, or cached settings. These URLs (en-gb/products/sample-item, etc.) don’t exist, so they return 404 errors.
How to Fix It
Here’s what you can do:
1. Check Your Shopify Markets & Language Settings
Even if you believe they’re off, double-check:
- Go to Settings > Markets and ensure there are no additional markets enabled.
- Go to Settings > Languages and make sure only your default language is active.
If you see en-gb or en-tr as active, disable them and clear your cache.
2. Force Shopify to Redirect 404 URLs
You can manually redirect the broken URLs to the correct product pages:
- Go to Online Store > Navigation > URL Redirects.
Add a redirect like:
From: /en-gb/products/sample-item
To: /products/sample-item
- Repeat this for en-tr and any other affected locales.
3. Block These URLs in Robots.txt (If They Keep Appearing)
If Google still crawls these URLs, block them in robots.txt:
1-Go to Online Store > Themes > Edit Code.
Open robots.txt.liquid and add:
makefile
CopyEdit
User-agent: *
Disallow: /en-gb/
Disallow: /en-tr/
2-Save and test it using Google’s Robots Testing Tool.
4. Remove URLs from Google Search Console
After fixing the issue, go to Google Search Console > Indexing > Removals and request Google to remove these invalid URLs.
Final Thoughts
Try these steps, and Shopify should stop generating unnecessary 404s. If you need extra help, just let me know asap. Thanks
Daisy.