My default search query:
example.com/search/?search_text=keyword
What I want to transform it:
example.com/search/keyword
So I added this to my function.php
add_rewrite_rule('^search/([^/]*)?','index.php?pagename=search&search_text=$matches[1]','top');
Works fine for english alphabet but whenever I search a keyword in my language like this:
example.com/search/kırmızı
The title of the page becomes: k%C4%B1rm%C4%B1z%C4%B1
and no results returned.
Let me know if you need more details.