-
Notifications
You must be signed in to change notification settings - Fork 2
/
.htaccess
45 lines (35 loc) · 2.05 KB
/
.htaccess
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
RewriteEngine On
# reserve XE Layout Template Source File (*.html)
RewriteRule ^(layouts|m.layouts)/(.+)/(.+)\.html$ ./index.php [L]
# conf, query, schema
RewriteRule ^(modules|addons|widgets)/(.+)/(conf|queries|schemas)/(.+)\.xml$ ./index.php [L]
# static files
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.+)/files/(member_extra_info|attach|cache|faceOff)/(.*) ./files/$2/$3 [L]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.+)/(files|modules|common|widgets|widgetstyles|layouts|m.layouts|addons)/(.*) ./$2/$3 [L]
# rss , blogAPI
RewriteRule ^(rss|atom)$ ./index.php?module=rss&act=$1 [L]
RewriteRule ^([a-zA-Z0-9가-힣ㄱ-ㅎㅏ-ㅣ_]+)/(rss|atom|api)$ ./index.php?mid=$1&act=$2 [L]
RewriteRule ^([a-zA-Z0-9가-힣ㄱ-ㅎㅏ-ㅣ_]+)/([a-zA-Z0-9가-힣ㄱ-ㅎㅏ-ㅣ_]+)/(rss|atom|api)$ ./index.php?vid=$1&mid=$2&act=$3 [L]
# trackback
RewriteRule ^([0-9]+)/(.+)/trackback$ ./index.php?document_srl=$1&key=$2&act=trackback [L]
RewriteRule ^([a-zA-Z0-9가-힣ㄱ-ㅎㅏ-ㅣ_]+)/([0-9]+)/(.+)/trackback$ ./index.php?vid=$1&document_srl=$2&key=$3&act=trackback [L]
# administrator page
RewriteRule ^admin/?$ ./index.php?module=admin [L]
# document permanent link
RewriteRule ^([0-9]+)$ ./index.php?document_srl=$1 [L]
# mid link
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9가-힣ㄱ-ㅎㅏ-ㅣ_]+)/?$ ./index.php?mid=$1 [L]
# mid + document link
RewriteRule ^([a-zA-Z0-9가-힣ㄱ-ㅎㅏ-ㅣ_]+)/([0-9]+)$ ./index.php?mid=$1&document_srl=$2 [L]
# vid + mid link
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9가-힣ㄱ-ㅎㅏ-ㅣ_]+)/([a-zA-Z0-9가-힣ㄱ-ㅎㅏ-ㅣ_]+)/?$ ./index.php?vid=$1&mid=$2 [L]
# vid + mid + document link
RewriteRule ^([a-zA-Z0-9가-힣ㄱ-ㅎㅏ-ㅣ_]+)/([a-zA-Z0-9가-힣ㄱ-ㅎㅏ-ㅣ_]+)/([0-9]+)$ ./index.php?vid=$1&mid=$2&document_srl=$3 [L]
# mid + entry title
RewriteRule ^([a-zA-Z0-9가-힣ㄱ-ㅎㅏ-ㅣ_]+)/entry/(.+)$ ./index.php?mid=$1&entry=$2 [L]
# vid + mid + entry title
RewriteRule ^([a-zA-Z0-9가-힣ㄱ-ㅎㅏ-ㅣ_]+)/([a-zA-Z0-9가-힣ㄱ-ㅎㅏ-ㅣ_]+)/entry/(.+)$ ./index.php?vid=$1&mid=$2&entry=$3 [L]