All things Shopify and commerce
Hi all,
Getting some annoying 404 errors in Google search console for Shopify cart and account pages.
What is the best way to deal with these errors? Will these errors affect SEO. Snapshot attached.
Have not taken any actions yet.
Hello @VD10
Those 404s are harmless system pages. Either ignore them or block them via robots.txt if you prefer a squeaky-clean crawl report. Neither the below approach will negatively impact your rankings. Here’s how to handle them:
1. Just ignore them
Shopify’s account and cart endpoints aren’t meant to be indexed—Google will eventually drop them from its crawl once it sees they’re always 404 or behind a login. No need to set up redirects or lose sleep over these.
2. Prevent Google from crawling them at all (optional)
If you’d rather keep your Search Console tidy, you can disallow those paths in your robots.txt so Google never tries to fetch them again:
User-agent: *
Disallow: /account/
Disallow: /cart
Paste that into Online Store → Themes → Edit code → templates/robots.txt.liquid (create the file if it doesn’t exist), then save. Google will re-crawl your robots.txt and drop those 404s over time.
3. Remove them from your sitemap
Shopify automatically omits account/cart pages from your XML sitemap, so you don’t need to worry there.
Thanks Kudosi,
The last 404 error in the screeenshot is www.mydomain.com/*
How would I disallow that in the robot.txt file?
Hi there, @VD10. The 404 errors are common and typically do not affect your SEO negatively as pages like /cart and /account/logout are functional URLs not intended for indexing at all.
If the URLs aren't linked publicly and are just being discovered incidentally, it's safe to ignore the errors. Cheers! 🙂
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn 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, 2025