Support » Plugin: Redirection » Redirection based on search parameter

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

    (@johnny5)

    Source: /?s=star+wars 

    Target: [REDIRECT]

    Thread Starter jordyblanken

    (@jordyblanken)

    Super. But in that case, if the customer searches for Star Wars duvets. That it refers to a different category? That he really looks at words contains and not at url.

    Plugin Author John Godley

    (@johnny5)

    I don’t know what you mean by that?

    Thread Starter jordyblanken

    (@jordyblanken)

    Sorry, let me describe it more clearly.

    What we want to achieve is that when someone searches for a certain product category, they will be automatically redirected to the category page. Now our search parameter is: ?s=, so what I really want is to set it up to do the following. If the url contains ?s= and for example Star Wars (somewhere in the url, the search query of the visitor), redirect the user to [THIS] page.

    I hope my explanation is clear and I hope this is possible with your plugin. Anyway, you’ve done a great job!

    Plugin Author John Godley

    (@johnny5)

    Doesn’t my suggestion do that? If you need other search terms then you will need to create a redirect for each one.

    Thread Starter jordyblanken

    (@jordyblanken)

    But your suggestion doesn’t work in the way that they should search for the specific search item? So you can’t move words in the search term?

    Plugin Author John Godley

    (@johnny5)

    Sorry, I’m really not understanding. You asked for a redirect for /?s=star+wars. Do you mean that it should match any search containing ‘star wars’? If you can create a regular expression to match then you can use that:

    https://redirection.me/support/redirect-regular-expressions/

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Redirection based on search parameter’ is closed to new replies.