아파치 mod rewrite RewriteRule 플래그

(Mod rewrite RewriteRule 플래그에서 넘어옴)
아파치 mod_rewrite RewriteRule 플래그

1 목록[ | ]

플래그 영어명 설명
B escape backreferences
C chain
CO cookie
DPI discardpath
E env
END end
F forbidden
G gone
H handler
L ★ last
N next
RewriteRule "(.*)A(.*)" "$1B$2" [N]
# Be willing to replace 1 character in each pass of the loop
RewriteRule "(.+)[><;]$" "$1" [N=64000]
# ... or, give up if after 10 loops
RewriteRule "(.+)[><;]$" "$1" [N=10]
NC ★ nocase
RewriteRule "(.*\.(jpg|gif|png))$" "http://images.example.com$1" [P,NC]
NE noescape
RewriteRule "^/anchor/(.+)" "/bigpage.html#$1" [NE,R]
NS nosubreq
P proxy
RewriteRule "/(.*)\.(jpg|gif|png)$" "http://images.example.com/$1.$2" [P]
PT passthrough
Alias "/icons" "/usr/local/apache/icons"
RewriteRule "/pics/(.+)\.jpg$" "/icons/$1.gif" [PT]
QSA ★ qsappend 쿼리스트링 붙이기(기본)
RewriteRule "/pages/(.+)" "/page.php?page=$1" [QSA]
QSD qsdiscard 쿼리스트링 삭제
QSL qslast
R ★ redirect
S skip
T type

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}