我找到了这个
RewriteRule ^search/(.+)?$ /index.php?s=$1 [QSA,L]
并且在形式上
<form action=";/index.php" method="get" onsubmit="location.href=\'/search/\' + encodeURIComponent(this.s.value).replace(/%20/g, \'+\'); return false;">
资料来源:
seo-wordpress-search-with-permalink-structure/如果你有更好的解决方案,我想要