RewriteEngine On
RewriteCond %{QUERY_STRING} !(?:^|&)Z21ID=[^&]
RewriteRule .* $0?%{QUERY_STRING}&Z21ID=GUEST [L]
RewriteEngine On
RewriteCond %{QUERY_STRING} (?:^|&)disableGlobalInfoCollect\=false(?:$|&)
RewriteRule ^catalog/tekhnicheskie/manometry_tekhnicheskie_mp3_uf/$ /catalog/tekhnicheskie/manometry_tekhnicheskie_mp3_uf/? [L,R=301]
RedirectMatch 301 ^/articles/other/page/\d+/$ /all/
RewriteEngine On
RewriteRule ^articles/other/page/\d+/$ /all/ [R=301,L]
https://
.RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?kamen46\.ru$ [NC]
RewriteRule ^(.*)$ https://xn--46-6kcijfxfggqnar4a5o.xn--p1ai/$1 [R=301,L]
RewriteRule ^(.*[^/])$ $1/ [L,R=301]
RewriteRule ^(.*[^/])$ https://site.ru/$1/ [L,R=301]
RewriteCond %{THE_REQUEST} " /index\.php\?route=extension/(xbundle|product_bundle&bundle_id=2) "
RewriteRule ^ - [R=404,L]
DirectorySlash off
RewriteEngine On
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^(.*)\.html /$1 [R=301,L]
RewriteCond %{DOCUMENT_ROOT}/$0.html -f
RewriteRule .* /$0.html [L]
^$
совпадает только для главной страницы.^
или $
. Тогда шаблон будет совпадать для любой страницы, в том числе и для /3.html
.RewriteCond %{THE_REQUEST} "!^\S+ /3\.html"
RewriteRule ^ /3.html [L,R=301]
RewriteCond %{REQUEST_URI} !^/3\.html$
RewriteRule ^ /3.html [L,R=301]
RewriteCond %{REQUEST_URI} !=/3.html
RewriteRule ^ /3.html [L,R=301]
RewriteRule !^3\.html$ /3.html [L,R=301]
# https://city.site.com/search/
RewriteCond %{HTTP_HOST} ^(?>www\.|)([\w-]+)\.site\.com$ [NC]
RewriteRule ^search/$ list.php?crt_city=%1 [L,QSA]
# https://city.site.com/
RewriteCond %{HTTP_HOST} ^(?>www\.|)([\w-]+)\.site\.com$ [NC]
RewriteRule ^$ st.php?crt_dealer=%1 [L,QSA]
RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
RewriteRule (.*) index.php?q=$1 [L]
?q=
RewriteRule ^news/2021/professor-bez-shtanov\.html$ https://www.crawler.pro/news/2021/produser-dlya-marketologa/professor-bez-shtanov.html [R=301,L]
RewriteCond %{REQUEST_URI} !/gorod_is_
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !/gorod_is_
RewriteRule ^(.*[^/])$ $1/ [L,R=301]
RewriteCond %{QUERY_STRING} ^SMARTY_DEBUG
RewriteRule ^category/$ https://site.ru/category/? [R=301,L]
RewriteCond %{THE_REQUEST} ^\S+\s/category/\?SMARTY_DEBUG
RewriteRule ^ https://site.ru/category/? [R=301,L]