1.1.5版的拼音url例子
本文只是举个例子,有兴趣的可以自己举一反三的改下吧
${encodeURL("/info?pinyin=${article.pinyin}")}
对应的伪静态规则
<rule>
<from>^/info/(.+?)\.html$</from>
<to last="true">/info\?pinyin=$1</to>
</rule>
<outbound-rule>
<from>^/info\?pinyin=(.+?)(;jsessionid=.*)?$</from>
<to last="true">/info/$1\.html</to>
</outbound-rule>
${encodeURL("/reader?pinyin=${article.pinyin}&chapterno=${chapter.chapterno}")}
对应的伪静态规则
<rule>
<from>^/reader/(.+?)/(\d*)\.html$</from>
<to last="true">/reader\?pinyin=$1&chapterno=$2</to>
</rule>
<outbound-rule>
<from>^/reader\?pinyin=(.+?)\&chapterno=(\d*)(;jsessionid=.*)?$</from>
<to last="true">/reader/$1/$2\.html</to>
</outbound-rule>