<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.1//EN" "http://tuckey.org/res/dtds/urlrewrite3.1.dtd">
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.0//EN" "http://tuckey.org/res/dtds/urlrewrite3.0.dtd">
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.0//EN" "http://tuckey.org/res/dtds/urlrewrite3.0.dtd">
urlrewrite 의 설정 xml의 선언부분이다..
둘의 차이는 버전 차이..
dtd 선언이 런타임시에 큰영향을 주는건지는 오늘 처음 알았다..
<rule>
<from>/images/**</from>
<to>/images/$1</to>
</rule>
<rule>
<from>/js/**</from>
<to last="true">/js/$1</to>
</rule>
<rule>
<from>/css/**</from>
<to>/css/$1</to>
</rule>
<rule>
<from>/extJS/**</from>
<to>/extJS/$1</to>
</rule>
<rule>
<from>/**</from>
<to>/app/$1</to>
</rule>
<from>/images/**</from>
<to>/images/$1</to>
</rule>
<rule>
<from>/js/**</from>
<to last="true">/js/$1</to>
</rule>
<rule>
<from>/css/**</from>
<to>/css/$1</to>
</rule>
<rule>
<from>/extJS/**</from>
<to>/extJS/$1</to>
</rule>
<rule>
<from>/**</from>
<to>/app/$1</to>
</rule>
이런 룰들이 있다고 치자..
url이 http://localhost/js/xxxx.js
라고 치면... 3.1로 선언을 하면
http://localhost/app/js/xxxx.js 이렇게 재작성이 된다..
그리고 3.0으로 선언하면..
http://localhost/js/xxxx.js 이렇게 된다..
둘은 엄청 큰차이다... ;;
결론을 이야기 하지 않아도 알듯싶어서 급마물...
댓글을 달아 주세요