KimsQ

kimsq v1.1.0 기준 nginx rewrite rule

by 보석 posted Aug 23, 2013
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 게시글 수정 내역 댓글로 가기 인쇄


rewrite ^/(admin)/?$ /./index.php?m=$1&module=$1 last;
rewrite ^/(p)/([a-z0-9_]+)/?$ /./index.php?mod=$2 last;
rewrite ^/(c)/([a-zA-Z0-9_/]+)/?$ /./index.php?c=$2 last;
rewrite ^/([0-9]+)/?$ /./index.php?m=bbs&uid=$1 last;
rewrite ^/(b)/?$ /./index.php?m=bbs last;
rewrite ^/(b)/([a-zA-Z0-9_]+)/?$ /./index.php?m=bbs&bid=$2 last;
rewrite ^/(b)/([a-zA-Z0-9_]+)/([0-9]+)/?$ /./index.php?m=bbs&bid=$2&uid=$3 last;
rewrite ^/(b)/([a-zA-Z0-9_]+)/write/?$ /./index.php?m=bbs&bid=$2&mod=write last;
rewrite ^/(b)/([a-zA-Z0-9_]+)/([0-9]+)/s([0-9]+)/?$ /./index.php?m=bbs&bid=$2&uid=$3&s=$4 last;
rewrite ^/(b)/([a-zA-Z0-9_]+)/([0-9]+)/([0-9]+)/?$ /./index.php?m=bbs&bid=$2&uid=$3&CMT=$4#CMT last;
rewrite ^/(b)/([a-zA-Z0-9_]+)/([0-9]+)/([0-9]+)/s([0-9]+)/?$ /./index.php?m=bbs&bid=$2&uid=$3&CMT=$4&s=$5#CMT last;
rewrite ^/([a-zA-Z0-9_]+)/?$ /./index.php?r=$1 last;
rewrite ^/([a-zA-Z0-9_]+)/(admin)/?$ /./index.php?r=$1&m=$2&mdule=$2 last;
rewrite ^/([a-zA-Z0-9_]+)/(p)/([a-z0-9_]+)/?$ /./index.php?r=$1&mod=$3 last;
rewrite ^/([a-zA-Z0-9_]+)/(c)/([a-zA-Z0-9_/]+)/?$ /./index.php?r=$1&c=$3 last;
rewrite ^/([a-zA-Z0-9_]+)/([0-9]+)/?$ /./index.php?r=$1&m=bbs&uid=$2 last;
rewrite ^/([a-zA-Z0-9_]+)/(b)/?$ /./index.php?r=$1&m=bbs last;
rewrite ^/([a-zA-Z0-9_]+)/(b)/([a-zA-Z0-9_]+)/?$ /./index.php?r=$1&m=bbs&bid=$3 last;
rewrite ^/([a-zA-Z0-9_]+)/(b)/([a-zA-Z0-9_]+)/([0-9]+)/?$ /./index.php?r=$1&m=bbs&bid=$3&uid=$4 last;
rewrite ^/([a-zA-Z0-9_]+)/(b)/([a-zA-Z0-9_]+)/write/?$ /./index.php?r=$1&m=bbs&bid=$3&mod=write last;
rewrite ^/([a-zA-Z0-9_]+)/(b)/([a-zA-Z0-9_]+)/([0-9]+)/s([0-9]+)/?$ /./index.php?r=$1&m=bbs&bid=$3&uid=$4&s=$5 last;
rewrite ^/([a-zA-Z0-9_]+)/(b)/([a-zA-Z0-9_]+)/([0-9]+)/([0-9]+)/?$ /./index.php?r=$1&m=bbs&bid=$3&uid=$4&CMT=$5#CMT last;
rewrite ^/([a-zA-Z0-9_]+)/(b)/([a-zA-Z0-9_]+)/([0-9]+)/([0-9]+)/s([0-9]+)/?$ /./index.php?r=$1&m=bbs&bid=$3&uid=$4&CMT=$5&s=$6#CMT last;



Articles

1 2 3 4 5 6 7 8 9 10