Пример файла urlrewrite.php

$arUrlRewrite = array(
	array(
		"CONDITION"	=>	"#^/catalog/(.*)/(.*)/\\?*(.*?)$#",
		"RULE"	=>	"SECTION_CODE=$1&ELEMENT_ID=$2",
		"ID"	=>	"",
		"PATH"	=>	"/catalog/detail.php",
	),
	array(
		"CONDITION"	=>	"#^/catalog/(.*)/\\?*(.*?)$#",
		"RULE"	=>	"SECTION_CODE=$1",
		"ID"	=>	"",
		"PATH"	=>	"/catalog/index.php",
	),
);