Redirect results page 0

#479894
  • Resolved Mike
    Rank Math free

    Hi,
    I want to perform a redirection for the results page when the result is 0.
    To do this I have entered the URL from https://myweb.com/?s= to the destination URL https://myweb.com/no-resultados and it does not save the action. Why?

    Is there something I am missing or is it not possible to do it this way?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Nigel
    Rank Math business

    Hello,

    Thank you for contacting Rank Math for help with creating an empty search result redirect.

    The source https://myweb.com/?s= has an empty search term, not an empty search result. To create a redirect for empty search results would require creating a (sub)template that is triggered when the search results are empty, this is beyond the scope of our support. You can look into creating a sub template if the WordPress search page query loop is empty.

    Hope that helps. Please let us know if you have questions.

    Mike
    Rank Math free

    Hi Nigel,
    Thanks for your reply.
    I have solved the problem with code.
    Best regards.

    Hello,

    Glad that everything has been sorted out. If you have any other questions in the future, know that we are here to help you.

    Thank you.

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

You must be logged in to reply to this ticket.