# index.php в конце
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.(php|html|htm)\ HTTP/
RewriteRule ^ https://site.ru/ [R=301,L]
# Исключаем все лишние слеши.
RewriteCond %{THE_REQUEST} //
RewriteRule .* https://site.ru/$0 [R=301,L]
# www на без www
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule .* https://site.ru/$0 [R=301,L]
# http на https
RewriteCond %{HTTPS} !=on [OR]
RewriteCond %{SERVER_PORT} !^443
RewriteRule .* https://site.ru/$0 [R=301,L]
RewriteEngine On
RewriteCond %{THE_REQUEST} ^\S+\s/contacts\.php
RewriteRule ^ /contacts [R=301,L]
RewriteRule ^contacts$ /contacts.php [L]
RewriteEngine On
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^contacts\.php /contacts [R=301,L]
RewriteRule ^contacts$ /contacts.php [L]
RewriteRule ^channel
выше RewriteRule ^(.*)$ $1.php
RewriteEngine On
RewriteBase /
# Редирект с http на https создан автоматически при заказе бесплатного ssl-сертификата
RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
# Конец редиректа
RewriteRule ^channel/([^/]+)/edit edit/card.php?id=$1 [L,QSA]
RewriteRule ^channel/([^/]+)/$ channel.php?id=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
ErrorDocument 404 /errors/404.php
RewriteEngine On
RewriteBase /
# Редирект с http на https создан автоматически при заказе бесплатного ssl-сертификата
RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
# Конец редиректа
RewriteCond %{DOCUMENT_ROOT}/$1.php -f
RewriteRule ^(.*)$ $1.php [L]
RewriteRule ^channel/([^/]+)/edit edit/card.php?id=$1 [L,QSA]
RewriteRule ^channel/([^/]+)/$ channel.php?id=$1 [L,QSA]
ErrorDocument 404 /errors/404.php
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]