Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
RewriteEngine on
RewriteRule ^/?katalogi$ /katalogi/ [R=301,L]
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
# редирект host.ru -> www.host.ru
RewriteCond %{HTTP_HOST} !^www\..+$ [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
# редирект /news/123 -> /news/123/
RewriteCond %{REQUEST_URI} ^(.*/[^/\.]+)$
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [R=301,L]
# подключение ЧПУ битрикса
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
</IfModule>
<?
$arUrlRewrite = array(
array(
"CONDITION" => "#^/catalog/([a-zA-Z0-9_]+)(/*)(.*)?#",
"RULE" => "SECTION_CODE=$1",
"ID" => "",
"PATH" => "/catalog/list.php",
),
array(
"CONDITION" => "#^/types_of_printing/([\\w\\d_]+)(/)?#",
"RULE" => "code=$1",
"ID" => "",
"PATH" => "/types_of_printing/detail.php",
),
array(
"CONDITION" => "#^/(.*)/(.*)?#",
"RULE" => "ELEMENT_CODE=$1",
"ID" => "",
"PATH" => "/catalog/detail.php",
),
array(
"CONDITION" => "#^/products/([\\w\\d]+)(/)?#",
"RULE" => "code=$1",
"ID" => "",
"PATH" => "/products/detail.php",
),
array(
"CONDITION" => "#^/e-store/books/reviews/#",
"RULE" => "",
"ID" => "bitrix:news",
"PATH" => "/e-store/books/reviews/index.php",
),
array(
"CONDITION" => "#^/communication/forum/#",
"RULE" => "",
"ID" => "bitrix:forum",
"PATH" => "/communication/forum/index.php",
),
array(
"CONDITION" => "#^/e-store/xml_catalog/#",
"RULE" => "",
"ID" => "bitrix:catalog",
"PATH" => "/e-store/xml_catalog/index.php",
),
array(
"CONDITION" => "#^/communication/blog/#",
"RULE" => "",
"ID" => "bitrix:blog",
"PATH" => "/communication/blog/index.php",
),
array(
"CONDITION" => "#^/service/(.*)/(.*)?#",
"RULE" => "ELEMENT_CODE=$1",
"ID" => "",
"PATH" => "/service/detail.php",
),
array(
"CONDITION" => "#^/content/articles/#",
"RULE" => "",
"ID" => "bitrix:news",
"PATH" => "/content/articles/index.php",
),
array(
"CONDITION" => "#^/content/gallery/#",
"RULE" => "",
"ID" => "bitrix:photogallery_user",
"PATH" => "/content/gallery/index.php",
),
array(
"CONDITION" => "#^/personal/lists/#",
"RULE" => "",
"ID" => "bitrix:lists",
"PATH" => "/personal/lists/index.php",
),
array(
"CONDITION" => "#^/e-store/books/#",
"RULE" => "",
"ID" => "bitrix:catalog",
"PATH" => "/e-store/books/index.php",
),
array(
"CONDITION" => "#^/content/photo/#",
"RULE" => "",
"ID" => "bitrix:photogallery",
"PATH" => "/content/photo/index.php",
),
array(
"CONDITION" => "#^/content/news/#",
"RULE" => "",
"ID" => "bitrix:news",
"PATH" => "/content/news/index.php",
),
array(
"CONDITION" => "#^/club/gallery/#",
"RULE" => "",
"ID" => "bitrix:photogallery_user",
"PATH" => "/club/gallery/index.php",
),
array(
"CONDITION" => "#^/content/faq/#",
"RULE" => "",
"ID" => "bitrix:support.faq",
"PATH" => "/content/faq/index.php",
),
array(
"CONDITION" => "#^/club/forum/#",
"RULE" => "",
"ID" => "bitrix:forum",
"PATH" => "/club/forum/index.php",
),
array(
"CONDITION" => "#^/services/#",
"RULE" => "",
"ID" => "bitrix:news",
"PATH" => "/services/index.php",
),
array(
"CONDITION" => "#^/sef_test/#",
"RULE" => "",
"ID" => "",
"PATH" => "/index.php",
),
array(
"CONDITION" => "#^/club/#",
"RULE" => "",
"ID" => "bitrix:socialnetwork",
"PATH" => "/club/index.php",
),
array(
"CONDITION" => "#^/news/#",
"RULE" => "",
"ID" => "bitrix:news",
"PATH" => "/news/index.php",
),
);
?>
(
"CONDITION" => "#^/katalogi/?#",
"RULE" => "",
"ID" => "",
"PATH" => "/catalog/list.php (здесь адрес стр списков каталогов, куда нужно перейти с /katalogi)",
),
RewriteEngine on
RewriteRule ^/katalogi/?$ /catalog/list.php [R=301,L]