RewriteCond %{REQUEST_URI} ^/(page|page/)$
RewriteRule .+ http://site.ru/page?process=view [R=301,L]
RewriteCond %{REQUEST_URI} ^/(page|page/)$
RewriteRule .+ http://site.ru/page\?process=view [R=301,L]
RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{HTTP_HOST} !^www\.(.*) [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{HTTP_HOST} !^www\.(.*) [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !^ru/home\-ru/$ [NC]
RewriteCond %{QUERY_STRING} (^|&)s\=some_text($|&)
RewriteCond %{QUERY_STRING} (^|&)lang\=ru($|&)
RewriteCond %{QUERY_STRING} (^|&)NoBots\=83AheSajkmPTJdOtGapEe2KqFgyGoBs75E3X5DfFGC0%3D%7C8997a03685d7552cbe5cb5a867ebfdf5($|&)
RewriteRule ^.*/$ /\?s=some_text&lang=ru&NoBots=83AheSajkmPTJdOtGapEe2KqFgyGoBs75E3X5DfFGC0%3D%7C8997a03685d7552cbe5cb5a867ebfdf5 [L,R=301]
!-
отрицание RewriteCond %{REQUEST_URI} !^ru/home\-ru/$
RewriteRule ^(.*)$ /$1\?%{QUERY_STRING}
RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{HTTP_HOST} !^www\.(.*) [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{HTTP_HOST} !^www\.(.*) [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
# 301 --- ex.com/maker.php?id=1 => ex.com/maker/1
RewriteCond %{QUERY_STRING} (^|&)id\=1($|&)
RewriteRule ^ex\.com/maker\.php$ http://ex.com/maker/1? [L,R=301]
# 301 --- ex.com/condition.php?id=1 => ex.com/condition/1
RewriteCond %{QUERY_STRING} (^|&)id\=1($|&)
RewriteRule ^ex\.com/condition\.php$ http://ex.com/condition/1? [L,R=301]
# 301 --- ex.com/expample.php => ex.com/expample
RewriteRule ^ex\.com/expample\.php$ http://ex.com/expample? [L,R=301]
RewriteRule ^link/(.*)$ link.php?link=$1 [PT,L,QSA]
RewriteRule ^link/(.*)$ link.php\?link=$1 [PT,L,QSA]
RewriteCond %{QUERY_STRING} (^|&)link\=\$1($|&)
RewriteRule ^link\.php$ /link/? [L,R=301]
RewriteCond %{THE_REQUEST} //
# Проверяем, повторяется ли слеш (//) более двух раз.
RewriteRule .* /$0 [R=301,L]
# Исключаем все лишние слеши.
RewriteCond %{HTTP} On
RewriteCond %{HTTP_HOST} ^site.ru
RewriteRule (.*) www.site.ru/$1 [R=301,L]