当我输入以下网址时
http://localhost:8080/helloapp (no slash in last position)
在地址栏回车,自动显示
http://localhost:8080/helloapp/ (note the slash at last position)
这是什么意思?
http://localhost:8080/helloapp
和 http://localhost:8080/helloapp/
是一回事吗?
我正在使用 tomcat。
最佳答案
它们是同一件事,这很可能是由于 php 或 apache 设置强制尾随/
这是 seo 中防止重复内容的常见做法。
关于jsp - 地址栏中的本地主机地址,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21734712/