• Resolved russromei

    (@russromei)


    I have woocommerce products that expire and are deleted daily
    I have facebook posts that link to these products on my site
    When the product is not found on my site, it creates a 404 error
    The links look like this:
    /?p=33572&fbclid=IwAR0v7coc23SpbG0KNxf-2VZzY-PPBUfxqZkIpV8YQ9rLI7vdWXYj0bkSKQ4

    The only commonality between these liks is
    /?p=

    Using “/?p=” or “^/?p=” and regex doesn’t work
    Redirecting to https://americans-home.com/product-category/forever-stamps/

    also I need this to only work on 404 errors

    Any help will be greatly appreciated

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

    (@johnny5)

    /?p= is what WordPress uses for posts. I would not create a general redirect for this as you could break things.

    If the problem is specifically the Facebook links then you could look at redirecting fbclid

    Thread Starter russromei

    (@russromei)

    but would only need to be for 404 errors of deleted products
    where would I see fbclid and how restrict to 404 errors
    When I create a redirect in the 404 tab, I see no reference to 404s in the created (edit) redirection

    Thread Starter russromei

    (@russromei)

    but would only need to be for 404 errors of deleted products
    where would I see fbclid and how restrict to 404 errors
    When I create a redirect in the 404 tab, I see no reference to 404s in the created (edit) redirection

    Plugin Author John Godley

    (@johnny5)

    When I create a redirect in the 404 tab, I see no reference to 404s in the created (edit) redirection

    Yes. I’m not sure what reference you are looking for?

    Thread Starter russromei

    (@russromei)

    In the context of my previous question:

    “but would only need to be for 404 errors of deleted products
    where would I see fbclid and how restrict to 404 errors
    When I create a redirect in the 404 tab, I see no reference to 404s in the created (edit) redirection”

    Plugin Author John Godley

    (@johnny5)

    Sorry, I’m not really sure what you mean or what the current problem is. As mentioned above I would advise not redirecting ?p= otherwise you could break WordPress.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Facebook product links’ is closed to new replies.