I need a regex to rewrite with htaccess the permalink of a wordpress search query. This query is built this ways : http://example.com/?s=queryterms1+queryterms2
and can contains upper and lower case, and digits and any special character.
I need this query to be rewritten into http://example.com/search/queryterms1+queryterms2.html
I tried a few but think that the "?" got me an error