• Resolved lois98

    (@lois98)


    Hi there,

    The website I’m working on keeps sending me broken links whenever I remove a product. Does anyone know why this is & can tell me how to stop this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    The reason for this is, every product has it’s own separate URL (link), that get crawled in sitemap.xml whenever you are deleting that product product gets deleted but not link, than that particular start tending to 404 (i.e broken)

    That’s why are getting this “broken links”

    Fixture:

    Please remove that URL from sitemap and then again submit that, or create 301 redirect using any plugin or through .htaccess so that instead of 404 user will get land on any valid page.

    Thanks

    Thread Starter lois98

    (@lois98)

    Hi, CedCommerce,

    Thank you for your response.

    I wanted to find out how I would be able to do this?

    Should I just remove the URLs using removals found under sitemaps?

    Or is there a different way of doing this without redirects?

    Thanks

    Hello,

    “Should I just remove the URLs using removals found under sitemaps?”

    Yes you can do this.

    “Or is there a different way of doing this without redirects?”

    If you will not redirect them, then already ranked URL’s (i.e that are indexed) will keep on tending to 404

    Thanks,

    Plugin Support Yuki K a11n.

    (@yukikatayama)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thread Starter lois98

    (@lois98)

    Hi there,

    So I have taken the following steps and I am still getting broken links on my products that I have now hidden.

    Steps are as follows:
    1. Remove image at products
    2. Hide product
    3. Remove image under Media – Library
    4. Temporary removals in Google Search Console

    Then in 6 months, we want to delete it

    Is this the right approach or must I do it another way?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Product display Broken links’ is closed to new replies.