-
Notifications
You must be signed in to change notification settings - Fork 1
/
sef.php
41 lines (41 loc) · 1000 Bytes
/
sef.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace ScriptAcid;
$arSEFUrls = array(
array(
"CONDITION" => "#^/news/([a-zA-Z0-9]+)/([0-9]+).html#",
"RULE" => "SECTION_CODE=$1&ELEMENT_ID=$2",
"ID" => "system:catalog.section",
"PATH" => "/news/index.php",
),
array(
"CONDITION" => "#^/news/([0-9]+).html#",
"RULE" => "ELEMENT_ID=$1",
"ID" => "system:catalog.section",
"PATH" => "/news/index.php",
),
array(
"CONDITION" => "#^/news/([a-zA-Z0-9]+)/#",
"RULE" => "SECTION_CODE=$1",
"ID" => "system:catalog.section",
"PATH" => "/news/index.php",
),
array(
"CONDITION" => "#^/photos/([a-zA_Z0-9\.\-\_]+)/#",
"RULE" => "CODE=$1",
"ID" => "zonevisage:photo.album",
"PATH" => "/photos/index.php",
),
array(
"CONDITION" => "#^/video/([0-9]+).html#",
"RULE" => "ELEMENT_ID=$1",
"ID" => "system:catalog.section",
"PATH" => "/video/index.php",
),
array(
"CONDITION" => "#^/lib/([0-9]+).html#",
"RULE" => "ELEMENT_ID=$1",
"ID" => "system:catalog.section",
"PATH" => "/lib/index.php",
),
);
?>