You could use Matrixify to export all URLs slugs and check them. Yes looks u got spaces in URLs, but on the product URL page in backend Shopify you should be able to change the URL slug.
Topic summary
Product pages are reporting 404s in Ahrefs; the broken URLs seem to mirror the H1 titles, and spaces in URLs are suspected.
Key insights:
- Shopify does not allow spaces in product/collection handles (slugs), so the issue is unlikely in the core handle values.
- Spaces are allowed in URL redirects, which could be generating malformed paths that Ahrefs is picking up.
Suggested actions:
- Audit handles/slugs in bulk with Matrixify (export Products and Collections), then update any incorrect ones if found.
- Check Online Store → Navigation → View URL Redirects for redirects containing spaces or incorrect paths; correct or remove them.
- In Shopify Admin, verify each product’s URL handle (slug) and adjust if necessary.
- Inspect page code for any custom logic that might build links from H1 titles rather than handles.
Notes:
- “Handle/slug” = the URL-friendly identifier for a product/collection.
- “Redirects” = rules that forward one URL path to another.
Status: No confirmed fix yet; guidance provided and further investigation (especially redirects) recommended. A screenshot was shared but is not essential to the steps above.