Skip to content

Instantly share code, notes, and snippets.

@vozhukh
Last active December 24, 2016 22:55
Show Gist options
  • Save vozhukh/c3845c9637013648fad7c9d803f97544 to your computer and use it in GitHub Desktop.
Save vozhukh/c3845c9637013648fad7c9d803f97544 to your computer and use it in GitHub Desktop.
bx_sku_pages.php
<?
array(
"CONDITION" => "#^/catalog/([a-z0-9-]+)/([a-z0-9-]+)/([a-z0-9-]+)/#",
"RULE" => "SECTION_CODE=$1&ELEMENT_CODE=$2&SKU_CODE=$3",
"ID" => "bitrix:catalog.element",
"PATH" => "/catalog/element_sku.php",
),
// with get params
array(
"CONDITION" => "#^/([a-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/((\\?)*([\\.A-Za-z0-9-=])*)$#",
"RULE" => "SECTION_CODE=$1&ELEMENT_CODE=$2&SKU_CODE=$3",
"ID" => "bitrix:catalog.element",
"PATH" => "/catalog/element_sku.php",
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment