RewriteCond %{QUERY_STRING} (?:^|&)q\=(.+)(?:$|&)
RewriteRule ^site\.ru/index\.php$ /site.ru/%1? [L,R=301]
apt-get instal jq
cat 222.txt | jq -r '.city'
Kabul
find /home -type f -maxdepth 1
find
- искать рекурсивно/home
- где-type f
-только файлы-maxdepth 1
глубира 1 каталог RewriteCond %{HTTPS} off
# Проверяем наличие https в URL.
RewriteCond %{REQUEST_URI} !^/bitrix/admin/1c_exchange\.php$ [NC]
# Исключим обмен с 1С, ему требуется только 200
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Перенаправляем протокол на http.