RewirteRule 팁

: Request URI에 %, 나 $ 와 같은 특수 문자가 있으면, 다음을 설정해라

 

RewriteRule     ^/launcher/App/landing.aspx(.*) /Launcher/App/Landing.aspx$1 [R,NE]

 

출처 :

http://rosebud.stanford.edu/manual/mod/mod_rewrite.html

 

 

'noescape|NE' (no URI escaping of output)
This flag keeps mod_rewrite from applying the usual URI escaping rules to the result of a rewrite. Ordinarily, special characters (such as '%', '$', ';', and so on) will be escaped into their hexcode equivalents ('%25', '%24', and '%3B', respectively); this flag prevents this from being done. This allows percent symbols to appear in the output, as in

RewriteRule /foo/(.*) /bar?arg=P1\%3d$1 [R,NE]

 

 

'Trend' 카테고리의 다른 글

리뷰 고고싱 게임?!!!  (0) 2008.01.21
소켓에서 읽을 데이터가 없습니다 라고 에러가 날때  (0) 2008.01.14
리딩업  (0) 2007.11.30
친절한  (0) 2007.11.27
울프팀 이야기  (0) 2007.10.24
Posted by '김용환'
,