开发者

Server side URL redirect

I have a long UR开发者_如何学运维L that points to initial page of the website and I want to make it simple so user can remember it. I don't want to do client-side redirects, I want to do it on server side to make it faster. I use Weblogic as a web-server.

Is there a way to redirect from say http://aaa.com/subproject to http://aaa.com/Project/subproject/index.html? What files should I modify achieve that?


Do you only want to do this for the first url?

If only the first, just create an entry in web.xml pointing the <welcome-file>index.jsp</welcome-file> to some index.jsp in the root for the webapp named subproject.

In this index.jsp, do a jsp:forward to the actual url you want.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜