RewriteRule ^massaj(.*)$ http://varmedia.ru/ [R=301,L]
^
означает начало строки, так что с ^massaj
могут совпасть только строки начинающиеся на massaj, а вы проверяете адреса начинающиеся на category/massaj/ и редирект не происходит. RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
и запрос отправляется в index.php. https://varmedia.ru/category/massaj
RewriteRule ^category/massaj https://varmedia.ru/ [R=301,L]
RewriteRule ^(f)(/.*|)$ /$1.php$2 [L]
RewriteCond %{DOCUMENT_ROOT}/$1.php -f
RewriteRule ^([^/.]+)(/.*|)$ /$1.php$2 [L]
RewriteRule ^link/(.+)$ /link.php?key=$1 [L]
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
/diagnostika%20%D0%B8
RewriteCond %{THE_REQUEST} " /diagnostika%20%D0%B8 "
RewriteRule ^ /diagnostika [R=301,L]
%XX
.RewriteRule "^diagnostika и$" /diagnostika [R=301,L]
Redirect 301 "/diagnostika и" /diagnostika
RedirectMatch 301 "^/diagnostika и$" /diagnostika
RewriteCond %{THE_REQUEST} "^GET / "
RewriteCond %{HTTP:Cookie} !language
RewriteRule ^$ /uk [L,R=302]
# 1 - 99
RewriteRule ^([^/]+)/[1-9]\d?$ /$1/index.php [L]
# 100 - 9999
RewriteRule ^([^/]+)/[1-9]\d\d\d?$ /$1/intel.php [L]
RewriteCond %{THE_REQUEST} " /catalog/index\.html"
RewriteRule ^ /catalog [L,R=301]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^(|(.+)/)index\.html /$2 [L,R=301]
RewriteRule ^product/([^/]+)\.html$ /replace.php [L]
<?php
if (preg_match('#^/product/([^/]+)\.html#', $_SERVER['REQUEST_URI'], $match)) {
$str = $match[1];
$str = str_replace('ja', 'ya', $str);
$str = str_replace('_', '-', $str);
header("Location: https://site.ru/shop/{$str}/", true, 301);
die();
}
RewriteCond ya$1 ^(ya)(.*)ja(.*)|^ya(.*)
RewriteCond -%2%1%3%4 ^(-)(.*)_(.*)|^-(.*)
RewriteCond -%2%1%3%4 ^(-)(.*)_(.*)|^-(.*)
RewriteRule ^product/([^/]+)\.html$ https://site.ru/shop/%2%1%3%4/ [R=301,L]
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
RewriteCond %{QUERY_STRING} ^(.+) [NC]
RewriteRule ^(.*)$ /$1? [R=301,L]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteEngine On
RewriteCond %{QUERY_STRING} ^(.+) [OR]
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1? [L,R=301]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
%{QUERY_STRING} ^(.+)
на %{THE_REQUEST} \?
RewriteCond %{THE_REQUEST} \?
RewriteCond %{THE_REQUEST} "! /calculator/"
RewriteRule ^(.*)$ /$1? [R=301,L]
rewrite ^/catalog/razdel-1/(.*)$ https://foo.ru/catalog/NOVIY-RAZDEL/$1 permanent;
RewriteRule ^catalog/razdel-1/(.*)$ https://foo.ru/catalog/NOVIY-RAZDEL/$1 [R=301,L]
Redirect 301 /page/subpage /
нужно поменять на RewriteRule.RewriteRule ^page/subpage$ /? [R=301,L]
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Redirect 301 /files/music/ https://site2.ru/files/music/
RewriteCond %{HTTP_HOST} ^site1\.ru [NC]
RewriteRule ^files/music/.+ https://site2.ru/$0 [R=301,L]
RewriteCond %{HTTP_HOST} ^site1\.ru [NC]
RewriteRule ^files/music/.+ https://site2.ru/$0 [P]
Redirect 301 /kollekciya-proektov/ https://---.ru/index.html
Redirect 301 /kollekciya-proektov/t-100/ https://---.ru/projects.html
Redirect 301 /kollekciya-proektov/t-100/ https://---.ru/projects.html
Redirect 301 /kollekciya-proektov/ https://---.ru/index.html
RedirectMatch 301 ^/kollekciya-proektov/$ https://---.ru/index.html
RedirectMatch 301 ^/kollekciya-proektov/t-100/$ https://---.ru/projects.html