RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ https://сайт.ком/ [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(en/|ru/|)index\.php\ HTTP/
RewriteRule ^ https://сайт.ком/%1 [R=301,L]
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.сайт\.ком$
RewriteRule ^(.*)$ https://сайт.ком/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ https://сайт.ком/ [R=301,L]
RewriteRule ^(en|ru)$ /$1/ [R=301,L]
RewriteCond %{REQUEST_URI} (.*/[^/.]+)($|\?)
RewriteRule .* %1.html [R=301,L]
RewriteCond %{REQUEST_URI} !^/(en|ru)/$
RewriteRule ^(.*)/$ /$1.html [R=301,L]
RewriteCond %{HTTP:SSL} !=1 [NC]
RewriteRule ^(.*) https://сайт.ком/$1 [L,R=301]
index.php/shops/4.html -> index.php/shops?id=4
RewriteRule ^index\.php/shops/(\d+)\.html index.php/shops?id=$1 [L]
/shops/4.html -> index.php/shops?id=4
RewriteRule ^shops/(\d+)\.html index.php/shops?id=$1 [L]
https://varmedia.ru/category/fitnes-mebel/resepshnyi -> 301
RewriteCond %{DOCUMENT_ROOT}/$1.php -f
RewriteRule ^([^/.]+/[^/.]+)(/.*|)$ /$1.php?q=$2 [L]
/f/2/3/4
/f.php
?/articles/view/6
и нужно последовательно проверять существует ли файл:/articles.php
/articles/view.php
RewriteCond %{DOCUMENT_ROOT}/$1.php -f
RewriteRule ^([^/.]+)(/.*|)$ /$1.php$2 [L]
RewriteCond %{DOCUMENT_ROOT}/$1.php -f
RewriteRule ^([^/.]+/[^/.]+)(/.*|)$ /$1.php$2 [L]
"static-text";"";"mail2@domen.com";
"static-text";"";"mail3@xxxxx+mail3@domen.com";
"static-text";"";"mail4@domen.com+mail5@domen.com+mail5@xxxxx";
"static-text";"";mail2@domen.com";
"static-text";"";mail3@domen.com";
"static-text";"";mail5@domen.com";
^((?:"[^"]*";){3})"(?:(?:(\w+@domen\.com)|\w+@[\w.]+)\+?)+
$1$2