I want to create a search form.
When I enter my query and press the submit button, I want submit to a URL – domain.com/query/there_is_my_query, but how to make this?
If I change method to GET, that URL will be domain.com/query/?query=there_is_my_query.
But if I change action to /query/, then In controller put $_POST['search'], that URL will be domain.com/query.
Edit!
I thought and decided to leave the following url – domain.com/query/?search=there_is_my_query.
To let you know, search engines do not use search forms.
So there is no point in making them search engine friendly.