Support » Plugin: Redirection » Search query redirect to page

  • bttmrc

    (@bttmrc)


    Hey,

    Is it possible to redirect a search query to a specific page?

    Example:
    /s=awesome I need to go to /page1/
    /s=sad I need to redirect to /postA/
    …and a few others more

    If I just add that redirect, it just goes to /page1/s=awesome or /postA/s=sad

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

    (@johnny5)

    How did you add that redirect? To get that result indicates the redirect is incorrect.

    Thread Starter bttmrc

    (@bttmrc)

    Source: ?s=awesome
    target: /postA

    That was what I added.

    Plugin Author John Godley

    (@johnny5)

    Are there any warnings when creating or editing that redirect?

    Thread Starter bttmrc

    (@bttmrc)

    No, none

    Plugin Author John Godley

    (@johnny5)

    There are when I use the same the source URL.

    Did you enable the regex option?

    Thread Starter bttmrc

    (@bttmrc)

    When I activate regex it shows this
    To prevent a greedy regular expression you can use ^ to anchor it to the start of the URL. For example: ^/?s=awesome

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Search query redirect to page’ is closed to new replies.