Is it possible to do 301 redirect with Tomcat 5.5 running standalone, not behind IIS/Apache?
相关问题
- Angular RxJS mergeMap types
- Google Apps Script: testing doPost() with cURL
- How to instantiate Http service in main.ts manuall
- C#使用http访问网络,有办法用指定网卡访问网络嘛?
- Tomcat and SSL Client certificate
相关文章
- C#使用http访问网络,有办法用指定网卡访问网络嘛?
- Tomcat的User信息可以存储到数据库中吗?
- tomcat的server.xml支持从Oracle中获取数据吗?
- web项目,Resonse Header发生解析错误,请大牛帮忙看看究竟是哪里的问题?
- Apache+Tomcat+JK实现的集群,如果Apache挂了,是不是整个服务就挂了?
- linux环境部署jpress,创建数据库时提提示连接失败
- Is a unicode user agent legal inside an HTTP heade
- git: retry if http request failed
To redirect entire folder to new location you need both a JSP and configuration to call this jsp upon 404.
In
index.jsp
you need to modify your redirect behavior. Below code would redirect fromOldApp
folder toNewApp
folder on the same server.index.jsp:
WEB-INF/web.xml:
There isn't a way to set this up as easily as you're able to with Apache. The closest thing would be to make a servlet or jsp to handle the redirect and then map it to the URL you want to redirect from. In the servlet or jsp it would do something like: