• Resolved Vero44

    (@vero44)


    I have a large WooCommerce shop and regularly add hundreds of new items or remove hundreds of existing ones. Adding redirections manually for this quantity would be nearly impossible, but I’d still like search engines and visitors to arrive on a similar product rather than, say, the homepage or shop page. Is there any scope to do this in Redirection or can I add code somewhere to support that?

    I’m happy to add code to functions.php etc. if you can point me in the right direction. Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author John Godley

    (@johnny5)

    I don’t really know what you are trying to do. Can you be a bit more specific?

    Thread Starter Vero44

    (@vero44)

    Hi John. Sure, here is my process. I have a product at:

    example.com/product/red-lamp

    I remove that product so it would lead to a 404, but I also sell other similar products such as a green widget. Can this plugin redirect automatically to

    example.com/product/green-lamp

    OR

    example.com/product-category/lamps

    The second option would be preferable. Note – I have hundreds of categories too, so it would need to detect the category that ‘red widget’ was previously in and use that. If it was deleted, I’m not sure we can find that?

    Plugin Author John Godley

    (@johnny5)

    The plugin doesn’t know what a similar product is. You would need to create a set of rules that could somehow describe that.

    Thread Starter Vero44

    (@vero44)

    Thanks. Can I create these rules within your plugin somehow?

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