404 in google search console double urls

Hey,

I was going throught the list of all 404 pages that cannot be indexed by google and I discovered weird double links like:

didierlab.de/products/hybrid-nagellack-studios-didier-street-life-8ml/products/hybrid-nagellack-studios-didier-street-life-8ml

so this part /products/hybrid-nagellack-studios-didier-street-life-8ml/ appears twice in the link, if I put the link without the second part it works perfectly fine. So I’m just wondering where these links are coming from and how can I stop it from happening. Anyone?

Hi @Dabrowka

It sounds like you’re dealing with a URL structure issue on your Shopify store where duplicate URL segments are causing 404 errors. This can be frustrating, but there are a few potential reasons and solutions for this problem:

Potential Causes:1. Duplicate Products or Redirects: There might be duplicate products or incorrect redirects set up within your Shopify store or through apps that are adding extra URL segments.

  1. Incorrect URL Handling in Themes or Apps: Sometimes, themes or third-party apps might incorrectly generate URLs with redundant segments.

  2. Manual Changes or Imports: If URLs were manually modified or if products were imported with incorrect URL formats, this could lead to duplicated segments.

I checked the URL using the Redirect path tool and there is a Javascript redirect.

How to Fix It:1. Check Shopify Product URLs:

  • Go to your Shopify admin panel.

  • Navigate to Products and check the URL handles of the products with issues.

  • Ensure that there are no duplicated segments in the URL handles.

    In Shopify, you can manage the URL structure by editing the last part of the URL for your product pages. To do this, go to the product in your admin area of Shopify, scroll down to the Search engine listing preview, and click on ‘Edit website SEO’. You will find the current URL of your product in the bottom field, and you can edit the last part of it. After making changes, hit save. If the product page is already live, Shopify will create a redirect from the old URL to the new URL automatically.

    For more detailed guidance, you can refer to this Yoast Shopify article: How to build exceptional product pages in Shopify.

  1. Review Redirects:

    • Go to Online Store > Navigation > URL Redirects.
    • Check for any redirects that might be causing the issue. Look for patterns or duplicate redirects that could be creating the extra URL segments.
  2. Inspect Your Theme:

    • Go to Online Store > Themes and click Customize.
    • Check if there are any settings or customizations related to URLs or product links that might be adding extra segments.
  3. Check Apps:

    • Review any third-party apps installed on your Shopify store.
    • Some apps, particularly those related to SEO, redirects, or product imports, might be causing the URL issues. Try disabling them temporarily to see if the issue resolves.
  4. Clean Up Duplicates:

    • Ensure that there are no duplicate products or collections with similar URL handles. This can sometimes cause confusion in URL generation.
  5. Consult Shopify Support:

    • If you’re unable to resolve the issue, reaching out to Shopify Support can be helpful. They can provide more specific guidance and check if there are any underlying issues with your store’s URL configuration.
  6. Check Google Search Console:

    • Log in to Google Search Console and inspect the affected URLs. This tool can help you understand how Google is seeing your URLs and if there are any issues with crawling.

By systematically checking these areas, you should be able to identify and correct the problem causing the duplicated URL segments on your Shopify store.

I hope this helps.