RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ https://site.ru/$1 [R=301,L]
RewriteCond %{ENV:HTTPS} !on [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^(.*)$ https://site.ru/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) index.php?route=$1 [L,QSA] RewriteCond %{SERVER_NAME} ^(www|blog|project|xerox)\.* RewriteCond %{REQUEST_URI} ^/favicon.ico$ RewriteRule ^ %1/favicon.ico [L]
RewriteCond %{REQUEST_URI} ^/favicon.ico$
RewriteCond %{SERVER_NAME} ^(www|blog|project|xerox)\.*
RewriteRule ^ %1/favicon.ico [L]RewriteCond %{SERVER_NAME} ^(www|blog|project|xerox)\.*
RewriteCond %{REQUEST_URI} =/favicon.ico
RewriteRule ^ %1/favicon.ico [L] DirectorySlash off
RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}/$1.html -f
RewriteRule (.*) /$1.html [L] RewriteCond %{REQUEST_URI} ^/auxpage_.+/.+$
RewriteRule ^ - [R=404,L]RewriteRule ^auxpage_.+/.+ - [R=404,L] сайт.ру/q?example=1 было сайт.ру/q/example/1
RewriteCond %{QUERY_STRING} (?:^|&)(example)=(1)(?:$|&)
RewriteRule ^q$ https://site.ru/q/%1/%2? [R=301,L]RewriteCond %{DOCUMENT_ROOT}/files/$1 -f
RewriteRule ^(img/.+) /files/$1 [L] RewriteRule ^(.+?)\.html(?!/amp/).+$ https://%{HTTP_HOST}/$1.html? [L,R=301]
RewriteCond %{QUERY_STRING} !^$
RewriteCond %{QUERY_STRING} !(^|&)srp=
RewriteCond %{QUERY_STRING} !(^|&)srk=
RewriteRule ^(.+?)\.html$ https://%{HTTP_HOST}/$1.html? [L,R=301]
RewriteCond %{REQUEST_URI} !^/wp-content/cache/
RewriteRule ^(.+?)\.html(?!/amp/).+$ https://%{HTTP_HOST}/$1.html? [L,R=301] RewriteEngine On
RewriteRule ^old/(\d+)$ https://site.ru/new/$1 [R=301,L]RewriteCond %{REQUEST_URI} ^/shop/shop/(.*)$
RewriteRule ^(.*)$ /shop/%1 [R=301,L]RewriteRule ^shop(/shop/.*) $1 [R=301,L]