【发布时间】:2016-04-13 13:50:04
【问题描述】:
https://mywebsite.com/contextroot/basic.html
上面的 url 工作正常,因为我的项目在 "deployedResources/webapp" 下有 basic.html
但是当我以https://mywebsite.com/contextroot/basic.html/ 输入网址时,我得到了 403 禁止。
如何自动删除url中的“/”并获取文件basic.html?
【问题讨论】:
-
感谢您删除不需要的字词并正确构图
-
您应该以某种方式重写 url,例如:stackoverflow.com/questions/8711392/… 或者设置
com.ibm.ws.webcontainer.RedirectWithPathInfo属性就足够了(根据:www-01.ibm.com/support/knowledgecenter/api/content/nl/pl/…) -
现在很好,非常感谢 :)
标签: jsp url servlets websphere