• When searching in WP the url string ends with domain.com/?s=key1+key2

    I’d like it to be

    domain.com/s/key1+key2

    I have this in my .htaccess:

    RewriteRule ^s/(.*)$ /?s=$1 [R=301,L]

    But all it does is redirect.

    I assume there needs to be a modification in the code. Is there a good way to do this without having to change it on every update? Like a small plugin or something like that.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Modifying Search Query URL String?’ is closed to new replies.