Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如: <rule> <from>^/create#name=(.*)$</from> <to>/page/new/success.jsp?name=$1</to> </rule>
<rule> <from>^/create#name=(.*)$</from> <to>/page/new/success.jsp?name=$1</to> </rule>
当我输入“/create#name=elvis”这样的uri时,它无法重写并转发到新地址,我现在该怎么办,如何对符号'#'进行转码
???
像这样的工作(逃避#标志)吗?
#
添加类型转发:
<rule> <from>/create\#name=(.*)</from> <to type="forward">/page/new/success.jsp?name=$1</to> </rule>
添加类型重定向:
<rule> <from>/create\#name=(.*)</from> <to type="redirect">/page/new/success.jsp?name=$1</to> </rule>