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]
RewriteRule ^/
<VirtualHost>
./
.RewriteRule ^first/second/$ https://site.com/first/target/ [R=301,L]
Redirect 301 /опалубка-колонн / https://site.su/category/prodazha-opalubki/prodazha-opalubki-kolonn/
Redirect 301 /опалубка-колонн/ https://site.su/category/prodazha-opalubki/prodazha-opalubki-kolonn/
Redirect 301 "/опалубка-колонн /" https://site.su/category/prodazha-opalubki/prodazha-opalubki-kolonn/