• Resolved vcnickels

    (@vcnickels)


    We use WooCommerce as an online catalog for an Antique/Salvage store. As such, the vast majority of items we have in the catalog or “one of a kind” and periodically we delete those that have been sold.

    Consequently, we have a lot of 404’s

    I would like to redirect the product 404’s to 410’s and have a custom page to the effect of sorry the product is no longer in stock. etc.

    I can not find any information on how to do this. There are a number of Custom 404 plugins but from what I can tell they still send a 404 to search engines not a 410 and the 404 page they make is for the whole site. I am looking for a way to specifically make one for products.

    How can this be done?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi there,

    How about adding a custom field to your product, “status” for example. When the product is sold, you change the status to “sold” and create a filter that for “sold” product, redirect to a new page.
    That means you don’t actually delete the product but “archive” it.

    Thread Starter vcnickels

    (@vcnickels)

    We delete them intentionally for a variety of reasons, archiving them doesn’t fit in. As it stands now with Woo if we mark an item sold, which we do before deleting them after a period of time, they stay out of the normal display. Adding a custom field is redundant.

    Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    @vcnickels

    I would encourage you to use some sort of 301 Redirect plugin to create redirects because if you simply delete products and let them go to a 404 page, the search engines are going to start dinging you for having an unreliable site. ??

    If you search the plugin repository for WooCommerce redirect, you should be able to find a plugin that will do this for you automatically on deleted products.

    Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please feel free to start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Redirect Deleted Products’ is closed to new replies.