-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.httpd.conf.extract.txt
executable file
·46 lines (37 loc) · 2.12 KB
/
.httpd.conf.extract.txt
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
# Events portal Apache directives
# Load using:
# # Events portal
# Include /path/to/events-portal/.httpd.conf.extract
# Use MacroEventsPortal /events "Events"
<Macro MacroEventsPortal $baseUrl $description>
# Front controller application support
Use MacroFrontControllerApplication "$baseUrl/" "$description"
# Application routing
RewriteRule ^$baseUrl/listings/$ $baseUrl/index.html?action=eventlistings [L]
RewriteRule ^$baseUrl$ $baseUrl/ [R]
RewriteRule ^$baseUrl/feed.html$ $baseUrl/index.html?action=eventsfeedpage [L]
RewriteRule ^$baseUrl/([^/]+)/feed.html$ $baseUrl/index.html?action=eventsfeedpage [L]
RewriteRule ^$baseUrl/feed(|unstyled).(js|xml|json)$ $baseUrl/index.html?action=eventsfeed&type=$2&style=$1 [L]
RewriteRule ^$baseUrl/([^/]+)/feed(|unstyled).(js|xml|json)$ $baseUrl/index.html?action=eventsfeed&type=$3&category=$1&style=$2 [L]
RewriteRule ^$baseUrl/add.html$ $baseUrl/index.html?action=addevents [L]
RewriteRule ^$baseUrl/(logo|logosmall).png$ - [L]
RewriteRule ^$baseUrl/(search)/$ $baseUrl/index.html?action=$1 [L]
RewriteRule ^$baseUrl/(search)$ $baseUrl/$1/ [R]
RewriteRule ^$baseUrl/(archive)/$ $baseUrl/index.html?action=$1 [L]
RewriteRule ^$baseUrl/(archive)$ $baseUrl/$1/ [R]
RewriteRule ^$baseUrl/(in)/([0-9]{4})/([0-9]{2})/$ $baseUrl/index.html?action=archive&year=$2&month=$3 [L]
RewriteRule ^$baseUrl/(in)/([0-9]{4})/([0-9]{2})$ $baseUrl/$1/$2/$3/ [R]
RewriteRule ^$baseUrl/in/?$ $baseUrl/archive/ [R]
RewriteRule ^$baseUrl/([^/]+)/$ $baseUrl/index.html?action=home&item=$1 [L]
RewriteRule ^$baseUrl/([^/]+)$ $baseUrl/$1/ [R]
RewriteRule ^$baseUrl/([0-9]+)/([a-z0-9-]+)/$ $baseUrl/index.html?action=showevent&item=$1&urlslug=$2 [L]
RewriteRule ^$baseUrl/([0-9]+)/([a-z0-9-]+)$ $baseUrl/$1/$2/ [R]
RewriteRule ^$baseUrl/([0-9]+)/([a-z0-9-]+)/(edit|clone|delete).html$ $baseUrl/index.html?action=$3event&item=$1&urlslug=$2 [L]
# Export formats
<LocationMatch "$baseUrl/(.*)feed(|unstyled)\.(js|xml|json)$">
php_admin_value auto_prepend_file none
php_admin_value auto_append_file none
</LocationMatch>
# Legacy URLs
RewriteRule ^$baseUrl/archive/(.+)$ $baseUrl/in/$1 [L,R=301]
</Macro>