Help please with doubles!
need redirect [R=301, L]
? s & submit = Search = real address? s & submit = Searchfffffyti = double

? s & submit = Searchlll = server error and approximately also with other URLs after the slash you can substitute characters and then either 404 or 500 error.

 domen-moy.ru/ domen-moy.ru/statya/ 

After the slash, a search string substitution is possible:

 ?s=Ρ‡Π°ΠΉΠ½ΠΈΠΊ&submit=Поиск 

I want the links to consist only of Latin lowercase letters and the (-) sign, i.e. = [az-]
All characters and special characters after a slash redirect to the final link. But here a search string may appear after a slash (exclude it so that it does not cut along with all the characters). And within the search string, text may appear when searching the site, and here also the condition for Latin letters, but without = [a-zA-Z]

for search and that does not go:

 RewriteCond %{QUERY_STRING} ^\?s=([az]*)&submit=Поиск RewriteRule ([^?]) /?s=$1&submit=Поиск [R=301,L] 

site on wordpress PS: week I can not solve the problem. enter image description here

  • 3
    The wording of your question is not entirely clear, or even completely unclear. - Visman
  • It is highly doubtful that %{QUERY_STRING} is found in Поиск , rather there is something like %D0%9F%D0%BE%D0%B8%D1%81%D0%BA , although xs. It has never occurred to such a thing - ReinRaus

1 answer 1

I want links to consist only of Latin lowercase letters and a sign

  1. For addresses in Latin, you need to install a transliteration plugin https://ru.presspress.org/plugins/cyr2lat/

  2. In s=Ρ‡Π°ΠΉΠ½ΠΈΠΊ "kettle" - search word. The text that the visitor is looking for on the site. It is simply NOT possible to translate and in general somehow change (the VP itself is responsible for cutting unsafe lines).

  3. In submit=Поиск "Search" is the name of the button. It is set by topic. In principle, it can not transmit.

  • ? s & submit = Searchiuuiiu - novel04
  • ? s & submit = Searchiuuiiu?; lkkl is all one search page - novel04
  • Naturally one - an empty search query. What is the problem? - SeVlad
  • and the real link? s & submit = Search for a closer look at the text (find the differences) - novel04
  • ? s & submit = Searchlll = Server Error - Roman04