$arUrlRewrite = array( array( "CONDITION" => "#^/products/#", "RULE" => "", "ID" => "bitrix:catalog", "PATH" => "/products/index.php", ), array( "CONDITION" => "#^/gallery/#", "RULE" => "", "ID" => "bitrix:catalog", "PATH" => "/gallery/index.php", ), array( "CONDITION" => "#^/catalog/#", "RULE" => "", "ID" => "bitrix:catalog", "PATH" => "/galereya/index.php", ), array( "CONDITION" => "#^/news/#", "RULE" => "", "ID" => "bitrix:news", "PATH" => "/news/index.php", ), ); ?> include_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/urlrewrite.php'); CHTTP::SetStatus("404 Not Found"); @define("ERROR_404","Y"); require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); $APPLICATION->SetTitle("404 Not Found"); $APPLICATION->IncludeComponent("bitrix:main.map", ".default", Array( "LEVEL" => "3", "COL_NUM" => "2", "SHOW_DESCRIPTION" => "Y", "SET_TITLE" => "Y", "CACHE_TIME" => "36000000" ) ); require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>