比如说 http://localhost:8080/sqb/manage/manage.html这个url 我能改成http://localhost:8080/sqb/manage/xxx 吗?
2条回答 默认 最新
stu liu 2013-11-15 09:48关注楼上正解 使用urlrewrite
使用nginx转发配置如下:
[code="java"]rewrite ^/sqb/manage/manage.html$ /sqb/manage/xxx last;[/code]或者直接使用urlrewriter,导入urlrewrite的jar包(http://tuckey.org/urlrewrite/#download),配置如下
[code="java"]
/sqb/manage/manage.html
/sqb/manage/xxx
[/code]本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报