.htaccess XE

운영자 | 기사입력 2022/05/28 [04:34]
>
필자의 다른기사 보기 인쇄하기 메일로 보내기 글자 크게 글자 작게
.htaccess XE
 
운영자   기사입력  2022/05/28 [04:34]

 

 

 cat .htaccess

RewriteEngine On

 

# reserve XE Layout Template Source File (*.html)

RewriteRule ^(layouts|m.layouts)/(.+).html$ - [L,F]

# reserve XE Template Source Files (*.html)

RewriteCond %{REQUEST_URI} !/modules/editor/

RewriteRule /(skins|m.skins)/(.+).html$ - [L,F]

 

# 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|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?mid=$1&document_srl=$2&key=$3&act=trackback [L]

RewriteRule ^([a-zA-Z0-9_]+)/([0-9]+)/(.+)/trackback$ ./index.php?vid=$1&document_srl=$2&key=$3&act=trackback [L]

RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/([0-9]+)/(.+)/trackback$ ./index.php?vid=$1&mid=$2&document_srl=$3&key=$4&act=trackback [L]

 

# document permanent link

RewriteRule ^([0-9]+)$ ./index.php?document_srl=$1 [L,QSA]

 

# mid link

RewriteCond %{SCRIPT_FILENAME} !-d

RewriteRule ^([a-zA-Z0-9_]+)/?$ ./index.php?mid=$1 [L,QSA]

# mid + document link

RewriteRule ^([a-zA-Z0-9_]+)/([0-9]+)$ ./index.php?mid=$1&document_srl=$2 [L,QSA]

 

# vid + mid link

RewriteCond %{SCRIPT_FILENAME} !-d

트위터 트위터 페이스북 페이스북 카카오톡 카카오톡
기사입력: 2022/05/28 [04:34]  최종편집: ⓒ iwav