# Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [L,R=301]
/subdirectory/public/.# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/subdirectory/public/(.+)/$
RewriteRule ^ /subdirectory/%1 [L,R=301]/public//subdirectory/public/.# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ /subdirectory/$1 [L,R=301] RewriteEngine On
RewriteRule ^katalog/$ https://sait.ru/katalog/index.shtml [R=301,L]RewriteEngine On
RewriteRule ^$ https://sait.ru/index.shtml [R=301,L]
RewriteRule ^(.+)/$ https://sait.ru/$1/index.shtml [R=301,L] /, то это обращение к существующей папке (корневой каталог сайта).RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !(\.[^./]+)$
RewriteCond %{REQUEST_fileNAME} !-d
RewriteCond %{REQUEST_fileNAME} !-f
RewriteRule (.*)/ /$1.htmlRewriteCond %{DOCUMENT_ROOT}/$1.html -f
RewriteRule ^(.+)/$ /$1.html [L] # 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.phpRewriteEngine 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.phpRewriteEngine 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]