Mask urls in JSP

后端 未结 4 1399
感动是毒
感动是毒 2020-12-19 19:10

Related to this question: URL characters replacement in JSP with UrlRewrite

I want to have masked URLs in this JSP Java EE web project. For example if I had this:

4条回答
  •  清歌不尽
    2020-12-19 19:29

    You could use a URLRewrite filter. It's like how mod_rewrite is for Apache's HTTP web server.

    http://tuckey.org/urlrewrite/

    "Redirect one url

    
    ^/some/old/page\.html$
    /very/new/page.html
    
    

    Tiny/Freindly url

    
    ^/zebra$
    /big/ugly/url/1,23,56,23132.html
    
    

    "

提交回复
热议问题