diff options
Diffstat (limited to 'app/frontend/url/config.xml')
-rw-r--r-- | app/frontend/url/config.xml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/app/frontend/url/config.xml b/app/frontend/url/config.xml new file mode 100644 index 0000000..b072b2d --- /dev/null +++ b/app/frontend/url/config.xml @@ -0,0 +1,44 @@ +<?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="*" + 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> |