summaryrefslogtreecommitdiff
path: root/app/frontend/url/config.xml
blob: 71a65f3c223dc5bb4851eed7513a93f3880ae68a (plain)
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
42
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <modules>
    <module id="url"
            class="Application.url.UrlManager"
            UrlPrefix="/"
            EnableCustomUrl="True">

      <url ServiceParameter="Home"
           UrlFormat="HiddenPath"
           pattern="{month}/{year}/"
           parameters.month="\d{2}"
           parameters.year="\d{4}" />
      <url ServiceParameter="Home"
           UrlFormat="HiddenPath"
           pattern="{month}/"
           parameters.month="\d{2}" />
      <url ServiceParameter="Home"
           UrlFormat="HiddenPath"
           EnableCustomUrl="false"
           pattern="" />

      <url ServiceParameter="Calendar"
           UrlFormat="HiddenPath"
           pattern="calendar/{calendar}/"
           parameters.calendar=".*" />

      <url ServiceParameter="Activate"
           UrlFormat="HiddenPath"
           pattern="activate/{email}/{hash}/"
           parameters.email="(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?"
           parameters.hash="[a-f0-9]{32}" />

      <url ServiceParameter="*"
           UrlFormat="HiddenPath"
           EnableCustomUrl="false"
           pattern="{*}" />
    </module>

    <module id="request"
            class="THttpRequest"
            UrlFormat="HiddenPath"
            UrlParamSeparator="/"
            UrlManager="url" />
    <module id="response"
            class="THttpResponse"
            CacheControl="public"
            CacheExpire="10" />
  </modules>
</configuration>