Answer the question
In order to leave comments, you need to log in
How to make the correct URL?
There is a search form
<form action="/search.php" method="get">
<input type="text" name="w">
<button type="submit" style="display: none;"></button>
</form>
RewriteRule ^search/([a-z,A-Z,0-9,-]+)/?$ /search.php?w=$1 [L,QSA]
Answer the question
In order to leave comments, you need to log in
Alternatively, just redirect it using JS. This means that you need to catch the form submission, build the address based on the entered data and redirect to the required address.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question