• Resolved MS Web Administrator

    (@mswebadm)


    I’m encountering an issue with pagination management in Rank Math and would appreciate some guidance.

    In our e-commerce store, we have a specific category that initially contained three pagination pages. However, due to product reassignments, the third pagination page no longer holds any products and returns a 404 status code.

    While implementing a permanent redirect from this page to the first pagination page might seem like a solution, it’s not ideal for long-term use. As we add new products to the category, this redirect would prevent users from accessing them if the redirect isn’t manually removed.

    Additionally, there’s a possibility that products from this category might be reassigned in the future, potentially leading to similar issues with other pagination pages.

    Considering these scenarios, I’m seeking a solution that enables automated behavior based on product availability on pagination pages. The desired outcome is as follows:

    1. If a pagination page contains no products and returns a 404 status code:

    Automatically redirect users to the first pagination page.

    2. If products are added to the pagination page:

    Change the status code to 200 (indicating successful retrieval) and prevent redirection to the first page.

    This approach ensures that users always have access to relevant products and eliminates the need for manual intervention to manage redirects.

    I would greatly appreciate any insights or guidance you can provide on achieving this behavior within Rank Math.

Viewing 1 replies (of 1 total)
  • Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @mswebadm,
    ?
    Thank you for contacting support.
    ?
    It’s not possible to enable a custom redirection that would check the availability of the products using our plugin.
    ?
    The only way to achieve his behavior using our plugin is to manually enable the redirection when the product count drops below a certain value.
    ?
    We understand that is not ideal or what you are looking for but it’s the only way in the current iteration of the plugin.
    ?
    Don’t hesitate to get in touch if you have any other questions.

Viewing 1 replies (of 1 total)
  • The topic ‘Automated Pagination Redirect Based on Product Availability’ is closed to new replies.